proximity6 2.0.0.0
|
Functions | |
void | proximity6_cfg_setup (proximity6_cfg_t *cfg) |
Config Object Initialization function. | |
err_t | proximity6_init (proximity6_t *ctx, proximity6_cfg_t *cfg) |
Initialization function. | |
err_t | proximity6_default_cfg (proximity6_t *ctx) |
Click Default Configuration function. | |
err_t | proximity6_generic_write (proximity6_t *ctx, uint8_t reg, uint16_t *data_buf, uint8_t len) |
Generic write function. | |
err_t | proximity6_generic_read (proximity6_t *ctx, uint8_t reg, uint16_t *data_out, uint8_t len) |
Generic read function. | |
err_t | proximity6_set_mode (proximity6_t *ctx, uint8_t select_mode) |
Mode Set function. | |
err_t | proximity6_read_data (proximity6_t *ctx, proximity6_data_t *axis_out) |
Data Read function. | |
uint8_t | proximity6_check_interrupt (proximity6_t *ctx) |
Interrupt Check function. | |
void proximity6_cfg_setup | ( | proximity6_cfg_t * | cfg | ) |
Config Object Initialization function.
cfg | Click configuration structure. |
This function initializes click configuration structure to init state.
uint8_t proximity6_check_interrupt | ( | proximity6_t * | ctx | ) |
Interrupt Check function.
ctx | Click object. |
Function checks is interrupt occurred and returns the state of the INT pin. INT pin can be configured to show are data registers updated with the new values or not.
err_t proximity6_default_cfg | ( | proximity6_t * | ctx | ) |
Click Default Configuration function.
ctx | Click object. |
0
- Success, -1
- Error. See #err_t definition for detailed explanation.err_t proximity6_generic_read | ( | proximity6_t * | ctx, |
uint8_t | reg, | ||
uint16_t * | data_out, | ||
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 |
0
- Success, -1
- Error. See #err_t definition for detailed explanation.err_t proximity6_generic_write | ( | proximity6_t * | ctx, |
uint8_t | reg, | ||
uint16_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. |
0
- Success, -1
- Error. See #err_t definition for detailed explanation.err_t proximity6_init | ( | proximity6_t * | ctx, |
proximity6_cfg_t * | cfg ) |
Initialization function.
ctx | Click object. |
cfg | Click configuration structure. |
0
- Success, -1
- Error. See #err_t definition for detailed explanation.err_t proximity6_read_data | ( | proximity6_t * | ctx, |
proximity6_data_t * | axis_out ) |
Data Read function.
ctx | Click object. |
axis_out | Structure object where data will be stored |
0
- Success, -1
- Error. See #err_t definition for detailed explanation.err_t proximity6_set_mode | ( | proximity6_t * | ctx, |
uint8_t | select_mode ) |
Mode Set function.
ctx | Click object. |
select_mode | 0 - Standby Mode, 1 - Proximity Mode, 2 - Sample Mode, 3 - Idle Mode |
0
- Success, -1
- Error. See #err_t definition for detailed explanation.