proxfusion2 2.0.0.0
|
Functions | |
void | proxfusion2_cfg_setup (proxfusion2_cfg_t *cfg) |
Config Object Initialization function. | |
err_t | proxfusion2_init (proxfusion2_t *ctx, proxfusion2_cfg_t *cfg) |
Initialization function. | |
err_t | proxfusion2_default_cfg (proxfusion2_t *ctx) |
Click Default Configuration function. | |
void | proxfusion2_write_byte (proxfusion2_t *ctx, uint8_t reg, uint8_t d_data) |
Function for writing one byte into the register. | |
uint8_t | proxfusion2_read_byte (proxfusion2_t *ctx, uint8_t reg) |
Function for reads one byte from register. | |
uint16_t | proxfusion2_read_data (proxfusion2_t *ctx, uint8_t reg) |
Function for reads two byte from register. | |
err_t | proxfusion2_check_communication (proxfusion2_t *ctx) |
Function for check communication by reading the device ID registers. | |
uint8_t | proxfusion2_detect_touch (proxfusion2_t *ctx) |
Function for detect Touch. | |
uint8_t | proxfusion2_detect_dark_light (proxfusion2_t *ctx, uint8_t *als_range) |
Function for read ambient light. | |
uint8_t | proxfusion2_detect_hall (proxfusion2_t *ctx) |
Function for read Hall-effect. | |
void proxfusion2_cfg_setup | ( | proxfusion2_cfg_t * | cfg | ) |
Config Object Initialization function.
cfg | Click configuration structure. |
This function initializes click configuration structure to init state.
err_t proxfusion2_check_communication | ( | proxfusion2_t * | ctx | ) |
Function for check communication by reading the device ID registers.
ctx | Click object. |
0
- Success, -1
- Error. See #err_t definition for detailed explanation. err_t proxfusion2_default_cfg | ( | proxfusion2_t * | ctx | ) |
Click Default Configuration function.
ctx | Click object. |
0
- Success, -1
- Error. See #err_t definition for detailed explanation.uint8_t proxfusion2_detect_dark_light | ( | proxfusion2_t * | ctx, |
uint8_t * | als_range ) |
Function for read ambient light.
ctx | Click object. |
als_range | ALS range (0-10) |
uint8_t proxfusion2_detect_hall | ( | proxfusion2_t * | ctx | ) |
Function for read Hall-effect.
ctx | Click object. |
uint8_t proxfusion2_detect_touch | ( | proxfusion2_t * | ctx | ) |
Function for detect Touch.
ctx | Click object. |
err_t proxfusion2_init | ( | proxfusion2_t * | ctx, |
proxfusion2_cfg_t * | cfg ) |
Initialization function.
ctx | Click object. |
cfg | Click configuration structure. |
0
- Success, -1
- Error. See #err_t definition for detailed explanation.uint8_t proxfusion2_read_byte | ( | proxfusion2_t * | ctx, |
uint8_t | reg ) |
Function for reads one byte from register.
ctx | Click object. |
reg | Register from which the data is read |
uint16_t proxfusion2_read_data | ( | proxfusion2_t * | ctx, |
uint8_t | reg ) |
Function for reads two byte from register.
ctx | Click object. |
reg | Register from which the data is read |
void proxfusion2_write_byte | ( | proxfusion2_t * | ctx, |
uint8_t | reg, | ||
uint8_t | d_data ) |
Function for writing one byte into the register.
ctx | Click object. |
reg | Register in which the data will be written |
d_data | Data which be written in register |