Files
fenrir/internal/speech/hardware_native.h

19 lines
730 B
C

// Copyright (c) 2026 Storm Dragon
// SPDX-License-Identifier: GPL-3.0-or-later
#ifndef FENRIR_SPEECH_HARDWARE_H
#define FENRIR_SPEECH_HARDWARE_H
#include <stddef.h>
typedef struct SpeechSerial SpeechSerial;
SpeechSerial *speech_serial_open(const char *path, int baud, int xon, int *status);
int speech_serial_write(SpeechSerial *port, const void *data, size_t length);
int speech_serial_cancel(SpeechSerial *port, unsigned char command);
void speech_serial_close(SpeechSerial *port);
typedef struct SpeechUSB SpeechUSB;
int speech_usb_available(void);
SpeechUSB *speech_usb_open(int *status);
int speech_usb_write(SpeechUSB *port, unsigned char endpoint, void *data, int length);
void speech_usb_close(SpeechUSB *port);
#endif