BALTECH SDK wrapper functions reference
rs232_protocol.h
Go to the documentation of this file.
1 
10 #ifndef __RS232_PROTOCOL_H__
11 #define __RS232_PROTOCOL_H__
12 
13 
14 #include "protocol.h"
15 
16 
39 BRP_LIB brp_protocol brp_create_rs232(char * dev_name, unsigned baudrate,
40  char parity);
41 
42 
48 #define BRP_DEFAULT_RS232_INTERBYTE_TIMEOUT 20
49 
50 
68  brp_protocol protocol,
69  brp_time timeout);
70 
71 
72 #endif
73  // end of defgroup brp_lib
unsigned int brp_errcode
This type is used library-wide for passing error codes in the return value of functions.
Definition: errorcodes.h:23
BRP_LIB brp_protocol brp_create_rs232(char *dev_name, unsigned baudrate, char parity)
Creates a protocol object for RS232/CDC interfaces from the device name.
struct brp_protocol_t * brp_protocol
This is a generic handle of a protocol.
Definition: protocol.h:34
unsigned long brp_time
absolute/relative timeout/delay in ms.
Definition: common.h:67
BRP_LIB brp_errcode brp_set_rs232_interbyte_timeout(brp_protocol protocol, brp_time timeout)
Sets the interbyte timeout for RS232 communication (Windows only).
This file primarly defines the common part of all protocol's data structures (:brp_protocol_t) and AP...