bargraph  2.0.0.0
Functions
Public function

Functions

void bargraph_cfg_setup (bargraph_cfg_t *cfg)
 Config Object Initialization function. More...
 
BARGRAPH_RETVAL bargraph_init (bargraph_t *ctx, bargraph_cfg_t *cfg)
 Initialization function. More...
 
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. More...
 
void bargraph_driver_init (bargraph_t *ctx)
 Functions for initializes the chip. More...
 
void bargraph_reset (bargraph_t *ctx)
 Functions for reset the chip. More...
 
void bargraph_display (bargraph_t *ctx, uint8_t input)
 Displays function. More...
 
void bargraph_enable (bargraph_t *ctx, uint8_t input)
 Functions for enable the chip. More...
 

Detailed Description

Function Documentation

◆ bargraph_cfg_setup()

void bargraph_cfg_setup ( bargraph_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.

◆ bargraph_display()

void bargraph_display ( bargraph_t ctx,
uint8_t  input 
)

Displays function.

Parameters
ctxClick object.
inputValue to be logs on the BarGraph display.

This is displays function.

◆ bargraph_driver_init()

void bargraph_driver_init ( bargraph_t ctx)

Functions for initializes the chip.

Parameters
ctxClick object.

This functions for initializes the chip.

◆ bargraph_enable()

void bargraph_enable ( bargraph_t ctx,
uint8_t  input 
)

Functions for enable the chip.

Parameters
ctxClick object.
inputValue to be logs on the BarGraph display.

This Functions for enable the chip.

◆ bargraph_generic_transfer()

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.

Parameters
ctxClick object.
wr_bufWrite data buffer
wr_lenNumber of byte in write data buffer
rd_bufRead data buffer
rd_lenNumber of byte in read data buffer

Generic SPI transfer, for sending and receiving packages

◆ bargraph_init()

BARGRAPH_RETVAL bargraph_init ( bargraph_t ctx,
bargraph_cfg_t cfg 
)

Initialization function.

Parameters
ctxClick object.
cfgClick configuration structure.

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

◆ bargraph_reset()

void bargraph_reset ( bargraph_t ctx)

Functions for reset the chip.

Parameters
ctxClick object.

This functions for reset the chip.