You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
14 lines
394 B
14 lines
394 B
#ifndef __SERIAL_H
|
|
#define __SERIAL_H
|
|
|
|
#define PARITY_EVEN 1
|
|
#define PARITY_ODD 2
|
|
#define PARITY_NONE 3
|
|
|
|
int OpenSerial( const char *port, int baud, int parity );
|
|
uint32_t ReadSerial( int serial, unsigned char *data, unsigned int length );
|
|
uint32_t WriteSerial( int serial, const unsigned char *data, unsigned int length );
|
|
void CloseSerial( int serial );
|
|
bool PurgeComm( int serial );
|
|
|
|
#endif
|
|
|