leddriver7 2.0.0.0

Functions

void leddriver7_cfg_setup (leddriver7_cfg_t *cfg)
 Config Object Initialization function.
 
LEDDRIVER7_RETVAL leddriver7_init (leddriver7_t *ctx, leddriver7_cfg_t *cfg)
 Initialization function.
 
void leddriver7_generic_write (leddriver7_t *ctx, uint8_t reg, uint8_t *data_buf, uint8_t len)
 Generic write function.
 
void leddriver7_generic_read (leddriver7_t *ctx, uint8_t reg, uint8_t *data_buf, uint8_t len)
 Generic read function.
 

Detailed Description

Function Documentation

◆ leddriver7_cfg_setup()

void leddriver7_cfg_setup ( leddriver7_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.

◆ leddriver7_generic_read()

void leddriver7_generic_read ( leddriver7_t * ctx,
uint8_t reg,
uint8_t * data_buf,
uint8_t len )

Generic read function.

Parameters
ctxClick object.
regRegister address.
data_bufOutput data buf
lenNumber of the bytes to be read

@description This function reads data from the desired register.

◆ leddriver7_generic_write()

void leddriver7_generic_write ( leddriver7_t * ctx,
uint8_t reg,
uint8_t * data_buf,
uint8_t len )

Generic write function.

Parameters
ctxClick object.
regRegister address.
data_bufData buf to be written.
lenNumber of the bytes in data buf.

@description This function writes data to the desired register.

◆ leddriver7_init()

LEDDRIVER7_RETVAL leddriver7_init ( leddriver7_t * ctx,
leddriver7_cfg_t * cfg )

Initialization function.

Parameters
leddriver7Click object.
cfgClick configuration structure.

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