bargraph 2.0.0.0
|
Functions | |
void | bargraph_cfg_setup (bargraph_cfg_t *cfg) |
Config Object Initialization function. | |
BARGRAPH_RETVAL | bargraph_init (bargraph_t *ctx, bargraph_cfg_t *cfg) |
Initialization function. | |
void | bargraph_generic_transfer (bargraph_t *ctx, uint8_t *wr_buf, uint16_t wr_len, uint8_t *rd_buf, uint16_t rd_len) |
Generic transfer function. | |
void | bargraph_driver_init (bargraph_t *ctx) |
Functions for initializes the chip. | |
void | bargraph_reset (bargraph_t *ctx) |
Functions for reset the chip. | |
void | bargraph_display (bargraph_t *ctx, uint8_t input) |
Displays function. | |
void | bargraph_enable (bargraph_t *ctx, uint8_t input) |
Functions for enable the chip. | |
void bargraph_cfg_setup | ( | bargraph_cfg_t * | cfg | ) |
Config Object Initialization function.
cfg | Click configuration structure. |
@description This function initializes click configuration structure to init state.
void bargraph_display | ( | bargraph_t * | ctx, |
uint8_t | input ) |
Displays function.
ctx | Click object. |
input | Value to be logs on the BarGraph display. |
@description This is displays function.
void bargraph_driver_init | ( | bargraph_t * | ctx | ) |
Functions for initializes the chip.
ctx | Click object. |
@description This functions for initializes the chip.
void bargraph_enable | ( | bargraph_t * | ctx, |
uint8_t | input ) |
Functions for enable the chip.
ctx | Click object. |
input | Value to be logs on the BarGraph display. |
@description This Functions for enable the chip.
void bargraph_generic_transfer | ( | bargraph_t * | ctx, |
uint8_t * | wr_buf, | ||
uint16_t | wr_len, | ||
uint8_t * | rd_buf, | ||
uint16_t | rd_len ) |
Generic transfer function.
ctx | Click object. |
wr_buf | Write data buffer |
wr_len | Number of byte in write data buffer |
rd_buf | Read data buffer |
rd_len | Number of byte in read data buffer |
@description Generic SPI transfer, for sending and receiving packages
BARGRAPH_RETVAL bargraph_init | ( | bargraph_t * | ctx, |
bargraph_cfg_t * | cfg ) |
Initialization function.
ctx | Click object. |
cfg | Click configuration structure. |
@description This function initializes all necessary pins and peripherals used for this click.
void bargraph_reset | ( | bargraph_t * | ctx | ) |
Functions for reset the chip.
ctx | Click object. |
@description This functions for reset the chip.