color6 2.0.0.0
|
Functions | |
void | color6_cfg_setup (color6_cfg_t *cfg) |
Config Object Initialization function. | |
COLOR6_RETVAL | color6_init (color6_t *ctx, color6_cfg_t *cfg) |
Initialization function. | |
void | color6_default_cfg (color6_t *ctx) |
Click Default Configuration function. | |
void | color6_generic_write (color6_t *ctx, uint8_t reg, uint8_t *data_buf, uint8_t len) |
Generic write function. | |
void | color6_generic_read (color6_t *ctx, uint8_t reg, uint8_t *data_buf, uint8_t len) |
Generic read function. | |
void | color6_write_byte (color6_t *ctx, uint8_t reg, uint8_t r_data) |
Functions for write one byte in register. | |
uint8_t | color6_read_byte (color6_t *ctx, uint8_t reg) |
Functions for read one byte data from register. | |
uint16_t | color6_read_data (color6_t *ctx, uint8_t reg) |
Functions for read data from register. | |
float | color6_get_temperature (color6_t *ctx) |
Functions for read temperature. | |
void | color6_software_reset (color6_t *ctx) |
Functions for software reset. | |
void | color6_go_to_measurement_mode (color6_t *ctx) |
Functions for go to measurement mode. | |
float | color6_converting_to_ee (color6_t *ctx, uint8_t channel, uint16_t mres_data) |
Functions for go to measurement mode. | |
void color6_cfg_setup | ( | color6_cfg_t * | cfg | ) |
Config Object Initialization function.
cfg | Click configuration structure. |
@description This function initializes click configuration structure to init state.
float color6_converting_to_ee | ( | color6_t * | ctx, |
uint8_t | channel, | ||
uint16_t | mres_data ) |
Functions for go to measurement mode.
ctx | Click object. |
channel | channel from which the data will be converted. |
mres_data | data read from the channel. |
@description This function should be called before the start measurement.
void color6_default_cfg | ( | color6_t * | ctx | ) |
Click Default Configuration function.
ctx | Click object. |
@description This function executes default configuration for Color6 click.
void color6_generic_read | ( | color6_t * | ctx, |
uint8_t | reg, | ||
uint8_t * | data_buf, | ||
uint8_t | len ) |
Generic read function.
ctx | Click object. |
reg | Register address. |
data_buf | Output data buf |
len | Number of the bytes to be read |
@description This function reads data from the desired register.
void color6_generic_write | ( | color6_t * | ctx, |
uint8_t | reg, | ||
uint8_t * | data_buf, | ||
uint8_t | len ) |
Generic write function.
ctx | Click object. |
reg | Register address. |
data_buf | Data buf to be written. |
len | Number of the bytes in data buf. |
@description This function writes data to the desired register.
float color6_get_temperature | ( | color6_t * | ctx | ) |
Functions for read temperature.
ctx | Click object. |
@description The measurement result is available as TEMP of the output result registers.
void color6_go_to_measurement_mode | ( | color6_t * | ctx | ) |
Functions for go to measurement mode.
ctx | Click object. |
@description This function should be called before the start measurement.
COLOR6_RETVAL color6_init | ( | color6_t * | ctx, |
color6_cfg_t * | cfg ) |
Initialization function.
color6 | Click object. |
cfg | Click configuration structure. |
@description This function initializes all necessary pins and peripherals used for this click.
uint8_t color6_read_byte | ( | color6_t * | ctx, |
uint8_t | reg ) |
Functions for read one byte data from register.
ctx | Click object. |
reg | Register address. |
@description This function reads one byte data from register.
uint16_t color6_read_data | ( | color6_t * | ctx, |
uint8_t | reg ) |
Functions for read data from register.
ctx | Click object. |
reg | Register address. |
@description This function reads data from register.
void color6_software_reset | ( | color6_t * | ctx | ) |
Functions for software reset.
ctx | Click object. |
@description This function should be called at the start of the program before the configuration of the chip.
void color6_write_byte | ( | color6_t * | ctx, |
uint8_t | reg, | ||
uint8_t | r_data ) |
Functions for write one byte in register.
ctx | Click object. |
reg | Register address. |
r_data | Register data. |
@description This function write one byte in register.