rs232isolator 2.0.0.0
|
Functions | |
void | rs232isolator_cfg_setup (rs232isolator_cfg_t *cfg) |
Config Object Initialization function. | |
RS232ISOLATOR_RETVAL | rs232isolator_init (rs232isolator_t *ctx, rs232isolator_cfg_t *cfg) |
Initialization function. | |
void | rs232isolator_generic_write (rs232isolator_t *ctx, char *data_buf, uint16_t len) |
Generic write function. | |
int16_t | rs232isolator_generic_read (rs232isolator_t *ctx, char *data_buf, uint16_t max_len) |
Generic read function. | |
void | rs232_2_set_rts (rs232isolator_t *ctx, uint8_t state) |
Function settings RTS state. | |
uint8_t | rs232_2_get_cts (rs232isolator_t *ctx) |
Read CTS state. | |
void | rs232isolator_send_command (rs232isolator_t *ctx, char *command) |
Function for send command. | |
uint8_t rs232_2_get_cts | ( | rs232isolator_t * | ctx | ) |
Read CTS state.
ctx | Click object. |
@description This function gets cts.
void rs232_2_set_rts | ( | rs232isolator_t * | ctx, |
uint8_t | state ) |
Function settings RTS state.
ctx | Click object. |
state | RTS state |
@description This function sets rts.
void rs232isolator_cfg_setup | ( | rs232isolator_cfg_t * | cfg | ) |
Config Object Initialization function.
cfg | Click configuration structure. |
@description This function initializes click configuration structure to init state.
int16_t rs232isolator_generic_read | ( | rs232isolator_t * | ctx, |
char * | data_buf, | ||
uint16_t | max_len ) |
Generic read function.
rs232isolator | Click object. |
data_buf | Data buffer for read data. |
max_len | The maximum length of data that can be read. |
void rs232isolator_generic_write | ( | rs232isolator_t * | ctx, |
char * | data_buf, | ||
uint16_t | len ) |
Generic write function.
rs232isolator | Click object. |
data_buf | Data buffer for sends. |
len | Number of bytes for sends. |
RS232ISOLATOR_RETVAL rs232isolator_init | ( | rs232isolator_t * | ctx, |
rs232isolator_cfg_t * | cfg ) |
Initialization function.
rs232isolator | Click object. |
cfg | Click configuration structure. |
@description This function initializes all necessary pins and peripherals used for this click.
void rs232isolator_send_command | ( | rs232isolator_t * | ctx, |
char * | command ) |
Function for send command.
ctx | Click object. |
command | Data to be send |