fever 2.0.0.0
Public function

Functions

void fever_cfg_setup (fever_cfg_t *cfg)
 Config Object Initialization function.
 
FEVER_RETVAL fever_init (fever_t *ctx, fever_cfg_t *cfg)
 Initialization function.
 
void fever_default_cfg (fever_t *ctx)
 Click Default Configuration function.
 
void fever_generic_write (fever_t *ctx, uint8_t reg, uint8_t *data_buf, uint8_t len)
 Generic write function.
 
void fever_generic_read (fever_t *ctx, uint8_t reg, uint8_t *data_buf, uint8_t len)
 Generic read function.
 
float fever_get_temperature (fever_t *ctx)
 Get temperature.
 

Detailed Description

Function Documentation

◆ fever_cfg_setup()

void fever_cfg_setup ( fever_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.

◆ fever_default_cfg()

void fever_default_cfg ( fever_t * ctx)

Click Default Configuration function.

Parameters
ctxClick object.

@description This function executes default configuration for Fever click.

◆ fever_generic_read()

void fever_generic_read ( fever_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.

◆ fever_generic_write()

void fever_generic_write ( fever_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.

◆ fever_get_temperature()

float fever_get_temperature ( fever_t * ctx)

Get temperature.

Parameters
ctxClick object.
Returns
return temperature value in Celsius.

◆ fever_init()

FEVER_RETVAL fever_init ( fever_t * ctx,
fever_cfg_t * cfg )

Initialization function.

Parameters
ctxClick object.
cfgClick configuration structure.

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