proximity13 2.0.0.0
|
Functions | |
void | proximity13_cfg_setup (proximity13_cfg_t *cfg) |
Config Object Initialization function. | |
PROXIMITY13_RETVAL | proximity13_init (proximity13_t *ctx, proximity13_cfg_t *cfg) |
Initialization function. | |
void | proximity13_default_cfg (proximity13_t *ctx) |
Click Default Configuration function. | |
void | proximity13_generic_write (proximity13_t *ctx, uint8_t reg_adr, uint8_t write_data) |
Generic write function. | |
uint8_t | proximity13_generic_read (proximity13_t *ctx, uint8_t reg_adr) |
Generic read function. | |
uint8_t | proximity13_get_int_pin_status (proximity13_t *ctx) |
Checks status of int pin. | |
uint8_t | proximity13_send_command (proximity13_t *ctx, uint8_t cmd_val) |
Sends command to command register. | |
uint8_t | proximity13_set_parameter (proximity13_t *ctx, uint8_t param, uint8_t cmd_val) |
Sets parameter. | |
uint8_t | porximity13_config_channel (proximity13_t *ctx, uint8_t chn_num, proximity13_config_t cfg_val) |
Configuration of channel. | |
uint8_t | porximity13_check_id (proximity13_t *ctx) |
Checks id of the device. | |
void | proximity13_read_channels (proximity13_t *ctx, proximity13_chn_val_t *chn_val) |
Reads all enabled channels. | |
uint8_t porximity13_check_id | ( | proximity13_t * | ctx | ) |
Checks id of the device.
ctx | Click object. |
@description This function checks ID
uint8_t porximity13_config_channel | ( | proximity13_t * | ctx, |
uint8_t | chn_num, | ||
proximity13_config_t | cfg_val ) |
Configuration of channel.
ctx | Click object. |
chn_num | channel number |
cfg_val | configuration struct value |
@description This function configurates specific channel
void proximity13_cfg_setup | ( | proximity13_cfg_t * | cfg | ) |
Config Object Initialization function.
cfg | Click configuration structure. |
@description This function initializes click configuration structure to init state.
void proximity13_default_cfg | ( | proximity13_t * | ctx | ) |
Click Default Configuration function.
ctx | Click object. |
@description This function executes default configuration for Proximity13 click.
uint8_t proximity13_generic_read | ( | proximity13_t * | ctx, |
uint8_t | reg_adr ) |
Generic read function.
ctx | Click object. |
reg_adr | Register address. |
@description This function reads data from the desired register.
void proximity13_generic_write | ( | proximity13_t * | ctx, |
uint8_t | reg_adr, | ||
uint8_t | write_data ) |
Generic write function.
ctx | Click object. |
reg_adr | Register address. |
write_data | Data to be written. |
@description This function writes data to the desired register.
uint8_t proximity13_get_int_pin_status | ( | proximity13_t * | ctx | ) |
Checks status of int pin.
ctx | Click object. |
@description This function returns the state of the int pin.
PROXIMITY13_RETVAL proximity13_init | ( | proximity13_t * | ctx, |
proximity13_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.
void proximity13_read_channels | ( | proximity13_t * | ctx, |
proximity13_chn_val_t * | chn_val ) |
Reads all enabled channels.
ctx | Click object. |
chn_val | channel value structure |
@description This function reads all enabled channels
uint8_t proximity13_send_command | ( | proximity13_t * | ctx, |
uint8_t | cmd_val ) |
Sends command to command register.
ctx | Click object. |
cmd_val | sending value |
@description This function sends command to command register
uint8_t proximity13_set_parameter | ( | proximity13_t * | ctx, |
uint8_t | param, | ||
uint8_t | cmd_val ) |
Sets parameter.
ctx | Click object. |
param | parameter |
cmd_val | sending value |
@description This function sets paramter