lin  2.0.0.0
Functions
Public function

Functions

void lin_cfg_setup (lin_cfg_t *cfg)
 Config Object Initialization function. More...
 
LIN_RETVAL lin_init (lin_t *ctx, lin_cfg_t *cfg)
 Initialization function. More...
 
void lin_generic_write (lin_t *ctx, char *data_buf, uint16_t len)
 Generic write function. More...
 
int32_t lin_generic_read (lin_t *ctx, char *data_buf, uint16_t max_len)
 Generic read function. More...
 
void lin_set_enable (lin_t *ctx, uint8_t state)
 Set enable pin state. More...
 
void lin_set_wake_up (lin_t *ctx, uint8_t state)
 Set wake up pin state. More...
 

Detailed Description

Function Documentation

◆ lin_cfg_setup()

void lin_cfg_setup ( lin_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.

◆ lin_generic_read()

int32_t lin_generic_read ( lin_t ctx,
char *  data_buf,
uint16_t  max_len 
)

Generic read function.

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

◆ lin_generic_write()

void lin_generic_write ( lin_t ctx,
char *  data_buf,
uint16_t  len 
)

Generic write function.

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

◆ lin_init()

LIN_RETVAL lin_init ( lin_t ctx,
lin_cfg_t cfg 
)

Initialization function.

Parameters
linClick object.
cfgClick configuration structure.

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

◆ lin_set_enable()

void lin_set_enable ( lin_t ctx,
uint8_t  state 
)

Set enable pin state.

Parameters
linClick object.
stateState.

◆ lin_set_wake_up()

void lin_set_wake_up ( lin_t ctx,
uint8_t  state 
)

Set wake up pin state.

Parameters
linClick object.
stateState.