templog6 2.0.0.0

Functions

void templog6_cfg_setup (templog6_cfg_t *cfg)
 Config Object Initialization function.
 
TEMPLOG6_RETVAL templog6_init (templog6_t *ctx, templog6_cfg_t *cfg)
 Initialization function.
 
void templog6_default_cfg (templog6_t *ctx)
 Click Default Configuration function.
 
void templog6_generic_write (templog6_t *ctx, uint8_t reg, uint8_t *data_buf, uint8_t len)
 Generic write function.
 
void templog6_generic_read (templog6_t *ctx, uint8_t reg, uint8_t *data_buf, uint8_t len)
 Generic read function.
 
void templog6_write_byte (templog6_t *ctx, uint8_t reg, uint8_t data_buf)
 Write one byte function.
 
uint8_t templog6_read_byte (templog6_t *ctx, uint8_t reg)
 Read one byte function.
 
uint8_t templog6_get_interrupt (templog6_t *ctx)
 Gets interrupt.
 

Detailed Description

Function Documentation

◆ templog6_cfg_setup()

void templog6_cfg_setup ( templog6_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.

◆ templog6_default_cfg()

void templog6_default_cfg ( templog6_t * ctx)

Click Default Configuration function.

Parameters
ctxClick object.

@description This function executes default configuration for Temp Log 6 click.

◆ templog6_generic_read()

void templog6_generic_read ( templog6_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.

◆ templog6_generic_write()

void templog6_generic_write ( templog6_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.

◆ templog6_get_interrupt()

uint8_t templog6_get_interrupt ( templog6_t * ctx)

Gets interrupt.

Parameters
ctxClick object.

@description This function gets the interrupt.

◆ templog6_init()

TEMPLOG6_RETVAL templog6_init ( templog6_t * ctx,
templog6_cfg_t * cfg )

Initialization function.

Parameters
ctxClick object.
cfgClick configuration structure.

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

◆ templog6_read_byte()

uint8_t templog6_read_byte ( templog6_t * ctx,
uint8_t reg )

Read one byte function.

Parameters
ctxClick object.
regRegister address.

@description This function reads one byte of data from the desired register.

◆ templog6_write_byte()

void templog6_write_byte ( templog6_t * ctx,
uint8_t reg,
uint8_t data_buf )

Write one byte function.

Parameters
ctxClick object.
regRegister address.
data_bufData to be written.

@description This function reads one byte of data from the desired register.