templog5 2.0.0.0
|
Functions | |
void | templog5_cfg_setup (templog5_cfg_t *cfg) |
Config Object Initialization function. | |
TEMPLOG5_RETVAL | templog5_init (templog5_t *ctx, templog5_cfg_t *cfg) |
Initialization function. | |
void | templog5_default_cfg (templog5_t *ctx) |
Click Default Configuration function. | |
void | templog5_write_data (templog5_t *ctx, uint8_t reg, uint16_t data_in) |
Functions for write data to the TS register. | |
void | templog5_write_eeprom (templog5_t *ctx, uint8_t start_addr, uint8_t *data_in, uint8_t n_byte) |
Writes data to the EEPROM address ( maximum 16 bytes per 1 page ). | |
uint16_t | templog5_read_data (templog5_t *ctx, uint8_t reg) |
Functions for read data from registers. | |
void | templog5_read_eeprom (templog5_t *ctx, uint8_t start_addr, uint8_t *data_out, uint8_t n_byte) |
Reads data from EEPROM. | |
float | templog5_get_temperature (templog5_t *ctx) |
Temperature Data. | |
uint8_t | templog5_get_temperature_status (templog5_t *ctx) |
Teperature Status. | |
uint8_t | templog5_get_interrupt_status (templog5_t *ctx) |
EVENT Interrupt status. | |
void templog5_cfg_setup | ( | templog5_cfg_t * | cfg | ) |
Config Object Initialization function.
cfg | Click configuration structure. |
@description This function initializes click configuration structure to init state.
void templog5_default_cfg | ( | templog5_t * | ctx | ) |
Click Default Configuration function.
ctx | Click object. |
@description This function executes default configuration for TempLog5 click.
TEMPLOG5_REG_CONFIGURATION: -TEMPLOG5_CFG_DISABLE_HYSTERESIS -TEMPLOG5_CFG_TEMP_SENSOR_ENABLE -TEMPLOG5_CFG_CRITICAL_TRIP_ENABLE -TEMPLOG5_CFG_ALARM_TRIP_ENABLE -TEMPLOG5_CFG_EVENT_INT_PIN_ENABLE -TEMPLOG5_CFG_EVENT_OUT_ENABLE -TEMPLOG5_CFG_EVENT_OUT_ACTIVE_HIGH -TEMPLOG5_CFG_EVENT_MODE_COMPARATOR
uint8_t templog5_get_interrupt_status | ( | templog5_t * | ctx | ) |
EVENT Interrupt status.
ctx | Click object. |
@description This function return interrupt status.
float templog5_get_temperature | ( | templog5_t * | ctx | ) |
Temperature Data.
ctx | Click object. |
@description This function return temperature value.
uint8_t templog5_get_temperature_status | ( | templog5_t * | ctx | ) |
Teperature Status.
ctx | Click object. |
@description This function return temperature status.
TEMPLOG5_RETVAL templog5_init | ( | templog5_t * | ctx, |
templog5_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.
uint16_t templog5_read_data | ( | templog5_t * | ctx, |
uint8_t | reg ) |
Functions for read data from registers.
ctx | Click object. |
reg | Register address. |
@description This function read from the TS register
void templog5_read_eeprom | ( | templog5_t * | ctx, |
uint8_t | start_addr, | ||
uint8_t * | data_out, | ||
uint8_t | n_byte ) |
Reads data from EEPROM.
ctx | Click object. |
start_addr | Eeprom start address. |
data_out | Buffer to be filled with the data from eeprom. |
n_byte | Number of bytes. |
@description This function read data to the EEPROM address.
void templog5_write_data | ( | templog5_t * | ctx, |
uint8_t | reg, | ||
uint16_t | data_in ) |
Functions for write data to the TS register.
ctx | Click object. |
reg | Register Address. |
data_in | Data to be written in register. |
@description This function write data data to the TS register
void templog5_write_eeprom | ( | templog5_t * | ctx, |
uint8_t | start_addr, | ||
uint8_t * | data_in, | ||
uint8_t | n_byte ) |
Writes data to the EEPROM address ( maximum 16 bytes per 1 page ).
Writting starts on given address.
ctx | Click object. |
start_addr | Start address. |
data_in | Pointer to data. |
n_byte | Number of bytes for writting. |
@description This function write data to the EEPROM address .