rs4855 2.0.0.0
Public function

Functions

void rs4855_cfg_setup (rs4855_cfg_t *cfg)
 Config Object Initialization function.
 
RS4855_RETVAL rs4855_init (rs4855_t *ctx, rs4855_cfg_t *cfg)
 Initialization function.
 
void rs4855_generic_write (rs4855_t *ctx, char *data_buf, uint16_t len)
 Generic write function.
 
int32_t rs4855_generic_read (rs4855_t *ctx, char *data_buf, uint16_t max_len)
 Generic read function.
 
void rs4855_set_de_state (rs4855_t *ctx, uint8_t state)
 Sets DE pin to high or low state.
 
void rs4855_set_re_state (rs4855_t *ctx, uint8_t state)
 Sets RE pin to high or low state.
 

Detailed Description

Function Documentation

◆ rs4855_cfg_setup()

void rs4855_cfg_setup ( rs4855_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.

◆ rs4855_generic_read()

int32_t rs4855_generic_read ( rs4855_t * ctx,
char * 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.

◆ rs4855_generic_write()

void rs4855_generic_write ( rs4855_t * ctx,
char * data_buf,
uint16_t len )

Generic write function.

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

◆ rs4855_init()

RS4855_RETVAL rs4855_init ( rs4855_t * ctx,
rs4855_cfg_t * cfg )

Initialization function.

Parameters
ctxClick object.
cfgClick configuration structure.

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

◆ rs4855_set_de_state()

void rs4855_set_de_state ( rs4855_t * ctx,
uint8_t state )

Sets DE pin to high or low state.

Parameters
ctxClick object.
statepin state

◆ rs4855_set_re_state()

void rs4855_set_re_state ( rs4855_t * ctx,
uint8_t state )

Sets RE pin to high or low state.

Parameters
ctxClick object.
statepin state