rs485isolator 2.0.0.0

Functions

void rs485isolator_cfg_setup (rs485isolator_cfg_t *cfg)
 Config Object Initialization function.
 
err_t rs485isolator_init (rs485isolator_t *ctx, rs485isolator_cfg_t *cfg)
 Initialization function.
 
void rs485isolator_generic_write (rs485isolator_t *ctx, uint8_t *data_buf, uint16_t len)
 Generic write function.
 
err_t rs485isolator_generic_read (rs485isolator_t *ctx, uint8_t *data_buf, uint16_t max_len)
 Generic read function.
 
void rs485isolator_set_receiver_mode (rs485isolator_t *ctx, uint8_t state)
 Set receiver state.
 
void rs485isolator_set_driver_mode (rs485isolator_t *ctx, uint8_t state)
 Set driver state.
 

Detailed Description

Function Documentation

◆ rs485isolator_cfg_setup()

void rs485isolator_cfg_setup ( rs485isolator_cfg_t * cfg)

Config Object Initialization function.

Parameters
cfgClick configuration structure.

This function initializes click configuration structure to init state.

Note
All used pins will be set to unconnected state.

◆ rs485isolator_generic_read()

err_t rs485isolator_generic_read ( rs485isolator_t * ctx,
uint8_t * data_buf,
uint16_t max_len )

Generic read function.

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

◆ rs485isolator_generic_write()

void rs485isolator_generic_write ( rs485isolator_t * ctx,
uint8_t * data_buf,
uint16_t len )

Generic write function.

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

◆ rs485isolator_init()

err_t rs485isolator_init ( rs485isolator_t * ctx,
rs485isolator_cfg_t * cfg )

Initialization function.

Parameters
ctxClick object.
cfgClick configuration structure.

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

◆ rs485isolator_set_driver_mode()

void rs485isolator_set_driver_mode ( rs485isolator_t * ctx,
uint8_t state )

Set driver state.

Parameters
ctxClick object.
stateSelect state (Enable / Disable)

◆ rs485isolator_set_receiver_mode()

void rs485isolator_set_receiver_mode ( rs485isolator_t * ctx,
uint8_t state )

Set receiver state.

Parameters
ctxClick object.
stateSelect state (Enable / Disable)