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.
 

Detailed Description

Function Documentation

◆ rs232_2_get_cts()

uint8_t rs232_2_get_cts ( rs232isolator_t * ctx)

Read CTS state.

Parameters
ctxClick object.

@description This function gets cts.

◆ rs232_2_set_rts()

void rs232_2_set_rts ( rs232isolator_t * ctx,
uint8_t state )

Function settings RTS state.

Parameters
ctxClick object.
stateRTS state

@description This function sets rts.

◆ rs232isolator_cfg_setup()

void rs232isolator_cfg_setup ( rs232isolator_cfg_t * cfg)

Config Object Initialization function.

Parameters
cfgClick configuration structure.

@description This function initializes click configuration structure to init state.

Note
All used pins will be set to unconnected state.

◆ rs232isolator_generic_read()

int16_t rs232isolator_generic_read ( rs232isolator_t * ctx,
char * data_buf,
uint16_t max_len )

Generic read function.

Parameters
rs232isolatorClick object.
data_bufData buffer for read data.
max_lenThe maximum length of data that can be read.
Returns
Number of reads data.

◆ rs232isolator_generic_write()

void rs232isolator_generic_write ( rs232isolator_t * ctx,
char * data_buf,
uint16_t len )

Generic write function.

Parameters
rs232isolatorClick object.
data_bufData buffer for sends.
lenNumber of bytes for sends.

◆ rs232isolator_init()

RS232ISOLATOR_RETVAL rs232isolator_init ( rs232isolator_t * ctx,
rs232isolator_cfg_t * cfg )

Initialization function.

Parameters
rs232isolatorClick object.
cfgClick configuration structure.

@description This function initializes all necessary pins and peripherals used for this click.

◆ rs232isolator_send_command()

void rs232isolator_send_command ( rs232isolator_t * ctx,
char * command )

Function for send command.

Parameters
ctxClick object.
commandData to be send