ldc1000 2.0.0.0
|
Functions | |
void | ldc1000_cfg_setup (ldc1000_cfg_t *cfg) |
Config Object Initialization function. | |
LDC1000_RETVAL | ldc1000_init (ldc1000_t *ctx, ldc1000_cfg_t *cfg) |
Initialization function. | |
void | ldc1000_default_cfg (ldc1000_t *ctx) |
Click Default Configuration function. | |
void | ldc1000_write_byte (ldc1000_t *ctx, uint8_t address, uint8_t input_data) |
Byte write function. | |
uint8_t | ldc1000_read_byte (ldc1000_t *ctx, uint8_t address) |
Byte read function. | |
uint16_t | ldc1000_get_proximity_data (ldc1000_t *ctx) |
Get proximity data function. | |
float | ldc1000_get_inductance_data (ldc1000_t *ctx) |
Get inductance data function. | |
uint8_t | ldc1000_get_int_input (ldc1000_t *ctx) |
Get interrupt pin input function. | |
void ldc1000_cfg_setup | ( | ldc1000_cfg_t * | cfg | ) |
Config Object Initialization function.
cfg | Click configuration structure. |
@description This function initializes click configuration structure to init state.
void ldc1000_default_cfg | ( | ldc1000_t * | ctx | ) |
Click Default Configuration function.
ctx | Click object. |
@description This function executes default configuration for LDC 1000 click.
float ldc1000_get_inductance_data | ( | ldc1000_t * | ctx | ) |
Get inductance data function.
ctx | Click object. |
@description This function reads the inductance data.
uint8_t ldc1000_get_int_input | ( | ldc1000_t * | ctx | ) |
Get interrupt pin input function.
ctx | Click object. |
@description This function reads the input voltage from the INT pin.
uint16_t ldc1000_get_proximity_data | ( | ldc1000_t * | ctx | ) |
Get proximity data function.
ctx | Click object. |
@description This function reads the proximity data.
LDC1000_RETVAL ldc1000_init | ( | ldc1000_t * | ctx, |
ldc1000_cfg_t * | cfg ) |
Initialization function.
ldc1000 | Click object. |
cfg | Click configuration structure. |
@description This function initializes all necessary pins and peripherals used for this click.
uint8_t ldc1000_read_byte | ( | ldc1000_t * | ctx, |
uint8_t | address ) |
Byte read function.
ctx | Click object. |
address | Register address. |
@description This function reads 1 byte of data from the specified register address.
void ldc1000_write_byte | ( | ldc1000_t * | ctx, |
uint8_t | address, | ||
uint8_t | input_data ) |
Byte write function.
ctx | Click object. |
address | Register address. |
input_data | Data byte. |
@description This function writes 1 byte of data to the specified register address.