bargraph 2.0.0.0
Public function

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.
 

Detailed Description

Function Documentation

◆ bargraph_cfg_setup()

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

◆ bargraph_display()

void bargraph_display ( bargraph_t * ctx,
uint8_t input )

Displays function.

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

@description This is displays function.

◆ bargraph_driver_init()

void bargraph_driver_init ( bargraph_t * ctx)

Functions for initializes the chip.

Parameters
ctxClick object.

@description 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.

@description 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

@description 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.

@description 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.

@description This functions for reset the chip.