19 #ifndef __ARTIK_SERIAL_H__ 20 #define __ARTIK_SERIAL_H__ 46 #define MAX_NAME_LEN 64 68 unsigned char *buf,
int len);
76 ARTIK_SERIAL_BAUD_4800,
77 ARTIK_SERIAL_BAUD_9600,
78 ARTIK_SERIAL_BAUD_14400,
79 ARTIK_SERIAL_BAUD_19200,
80 ARTIK_SERIAL_BAUD_38400,
81 ARTIK_SERIAL_BAUD_57600,
82 ARTIK_SERIAL_BAUD_115200,
83 ARTIK_SERIAL_BAUD_230400,
84 ARTIK_SERIAL_BAUD_460800,
85 ARTIK_SERIAL_BAUD_500000,
86 ARTIK_SERIAL_BAUD_576000,
87 ARTIK_SERIAL_BAUD_921600,
88 ARTIK_SERIAL_BAUD_1000000,
89 ARTIK_SERIAL_BAUD_1152000,
90 ARTIK_SERIAL_BAUD_1500000,
91 ARTIK_SERIAL_BAUD_2000000,
92 ARTIK_SERIAL_BAUD_2500000,
93 ARTIK_SERIAL_BAUD_3000000,
94 ARTIK_SERIAL_BAUD_3500000,
95 ARTIK_SERIAL_BAUD_4000000,
105 ARTIK_SERIAL_PARITY_NONE,
106 ARTIK_SERIAL_PARITY_ODD,
107 ARTIK_SERIAL_PARITY_EVEN
116 ARTIK_SERIAL_DATA_7BIT,
117 ARTIK_SERIAL_DATA_8BIT
126 ARTIK_SERIAL_STOP_1BIT,
127 ARTIK_SERIAL_STOP_2BIT
136 ARTIK_SERIAL_FLOWCTRL_NONE,
137 ARTIK_SERIAL_FLOWCTRL_HARD,
138 ARTIK_SERIAL_FLOWCTRL_SOFT
232 unsigned char *buf,
int *len);
250 unsigned char *
const msg,
int *len);
280 artik_error(*unset_received_callback) (artik_serial_handle handle);
artik_serial_parity_t parity
Parity of the SERIAL module.
SERIAL configuration structure.
artik_serial_flowcontrol_t flowctrl
Control of the SERIAL module.
SERIAL module operations.
char * name
Friendly name for the SERIAL module.
artik_serial_data_bits_t
SERIAL data bit length type.
artik_serial_baudrate_t baudrate
Baudrate of the SERIAL module.
artik_serial_stop_bits_t stop_bits
Stop bit of the SERIAL module.
artik_serial_parity_t
SERIAL parity type.
void * artik_serial_handle
SERIAL handle type.
int artik_error
Error type.
artik_serial_stop_bits_t
SERIAL bit stop type.
artik_serial_flowcontrol_t
SERIAL control type.
artik_serial_baudrate_t
SERIAL baudrate type.
void(* artik_serial_callback)(void *user_data, unsigned char *buf, int len)
SERIAL callback type.
void * data_user
Pointer to data for internal use by the API.
unsigned int port_num
Port number of the SERIAL in use.
artik_serial_data_bits_t data_bits
Data bit length of the SERIAL module.