rs232 2.0.0.0
|
Functions | |
void | rs232_cfg_setup (rs232_cfg_t *cfg) |
Config Object Initialization function. | |
RS232_RETVAL | rs232_init (rs232_t *ctx, rs232_cfg_t *cfg) |
Initialization function. | |
void | rs232_generic_write (rs232_t *ctx, char *data_buf, uint16_t len) |
Generic write function. | |
int32_t | rs232_generic_read (rs232_t *ctx, char *data_buf, uint16_t max_len) |
Generic read function. | |
uint8_t | rs232_get_cts_state (rs232_t *ctx) |
Get CTS pin state (Clear to send) | |
void | rs232_set_rts_state (rs232_t *ctx, uint8_t state) |
Set RTS pin state. | |
void rs232_cfg_setup | ( | rs232_cfg_t * | cfg | ) |
Config Object Initialization function.
cfg | Click configuration structure. |
@description This function initializes click configuration structure to init state.
int32_t rs232_generic_read | ( | rs232_t * | ctx, |
char * | data_buf, | ||
uint16_t | max_len ) |
Generic read function.
rs232 | Click object. |
data_buf | Data buffer for read data. |
max_len | The maximum length of data that can be read. |
void rs232_generic_write | ( | rs232_t * | ctx, |
char * | data_buf, | ||
uint16_t | len ) |
Generic write function.
rs232 | Click object. |
data_buf | Data buffer for sends. |
len | Number of bytes for sends. |
uint8_t rs232_get_cts_state | ( | rs232_t * | ctx | ) |
Get CTS pin state (Clear to send)
ctx | Click object. |
RS232_RETVAL rs232_init | ( | rs232_t * | ctx, |
rs232_cfg_t * | cfg ) |
Initialization function.
rs232 | Click object. |
cfg | Click configuration structure. |
@description This function initializes all necessary pins and peripherals used for this click.
void rs232_set_rts_state | ( | rs232_t * | ctx, |
uint8_t | state ) |
Set RTS pin state.
ctx | Click object. |
state | RTS (Request to send) pin state |