ldc1101 2.0.0.0
|
Functions | |
void | ldc1101_cfg_setup (ldc1101_cfg_t *cfg) |
Config Object Initialization function. | |
LDC1101_RETVAL | ldc1101_init (ldc1101_t *ctx, ldc1101_cfg_t *cfg) |
Initialization function. | |
void | ldc1101_default_cfg (ldc1101_t *ctx) |
Click Default Configuration function. | |
void | ldc1101_generic_transfer (ldc1101_t *ctx, uint8_t *wr_buf, uint16_t wr_len, uint8_t *rd_buf, uint16_t rd_len) |
Generic transfer function. | |
void | ldc1101_generic_write (ldc1101_t *ctx, uint8_t reg_addr, uint8_t tx_data) |
Functions for write one byte on address. | |
uint8_t | ldc1101_generic_read (ldc1101_t *ctx, uint8_t reg_addr) |
Functions for read byte from address. | |
void | ldc1101_set_power_mode (ldc1101_t *ctx, uint8_t pwr_mode) |
Set power mode function. | |
void | ldc1101_go_to_l_mode (ldc1101_t *ctx) |
Functions for go to L mode. | |
void | ldc1101_go_to_r_mode (ldc1101_t *ctx) |
Functions for go to RP mode. | |
uint8_t | ldc1101_get_status (ldc1101_t *ctx) |
Functions for reads status. | |
uint16_t | ldc1101_get_rp_data (ldc1101_t *ctx) |
Functions for reads RP data. | |
uint16_t | ldc1101_get_l_data (ldc1101_t *ctx) |
Functions for reads L data. | |
uint8_t | ldc1101_get_interrupt (ldc1101_t *ctx) |
Functions for get interrupt pin status. | |
void ldc1101_cfg_setup | ( | ldc1101_cfg_t * | cfg | ) |
Config Object Initialization function.
cfg | Click configuration structure. |
@description This function initializes click configuration structure to init state.
void ldc1101_default_cfg | ( | ldc1101_t * | ctx | ) |
Click Default Configuration function.
ctx | Click object. |
@description This function executes default configuration for Ldc1101 click.
LDC1101_REG_CFG_RP_MEASUREMENT_DYNAMIC_RANGE ------------------------------------------------- LDC1101_RP_SET_RP_MIN_0_75KOh
LDC1101_REG_CFG_INTERNAL_TIME_CONSTANT_1
LDC1101_TC1_C1_3pF LDC1101_TC1_R1_212_7kOhm
LDC1101_REG_CFG_INTERNAL_TIME_CONSTANT_2 ------------------------------------------------- LDC1101_TC2_C2_12pF LDC1101_TC2_R2_426_4kOhm
LDC1101_REG_CFG_RP_L_CONVERSION_INTERVAL ------------------------------------------------- LDC1101_DIG_CFG_RESP_TIME_384s
LDC1101_REG_CFG_ADDITIONAL_DEVICE ------------------------------------------------- LDC1101_ALT_CFG_SHUTDOWN_DISABLE LDC1101_ALT_CFG_L_OPTIMAL_DISABLED
LDC1101_REG_RP_THRESH_H_MSB ------------------------------------------------- LDC1101_FUNC_MODE_ACTIVE_MODE_DEF_CFG
LDC1101_REG_RP_THRESH_L_LSB ------------------------------------------------- LDC1101_FUNC_MODE_ACTIVE_MODE_DEF_CFG
LDC1101_REG_RP_THRESH_L_MSB ------------------------------------------------- LDC1101_FUNC_MODE_ACTIVE_MODE_DEF_CFG
LDC1101_REG_CFG_INTB_MODE ------------------------------------------------- LDC1101_FUNC_MODE_ACTIVE_CONVERSION_MODE
LDC1101_REG_CFG_POWER_STATE ------------------------------------------------- LDC1101_FUNC_MODE_SLEEP_MODE
LDC1101_REG_AMPLITUDE_CONTROL_REQUIREMENT ------------------------------------------------- LDC1101_FUNC_MODE_ACTIVE_CONVERSION_MODE
LDC1101_REG_L_THRESH_HI_LSB ------------------------------------------------- LDC1101_FUNC_MODE_ACTIVE_MODE_DEF_CFG
LDC1101_REG_L_THRESH_HI_MSB ------------------------------------------------- LDC1101_FUNC_MODE_ACTIVE_MODE_DEF_CFG
LDC1101_REG_L_THRESH_LO_LSB ------------------------------------------------- LDC1101_FUNC_MODE_ACTIVE_MODE_DEF_CFG
LDC1101_REG_L_THRESH_LO_MSB ------------------------------------------------- LDC1101_FUNC_MODE_ACTIVE_MODE_DEF_CFG
LDC1101_REG_LHR_RCOUNT_LSB ------------------------------------------------- LDC1101_RES_L_MEAS_REF_CNT_DEF_CFG
LDC1101_REG_LHR_RCOUNT_MSB ------------------------------------------------- LDC1101_RES_L_MEAS_REF_CNT_DEF_CFG
LDC1101_REG_LHR_OFFSET_LSB ------------------------------------------------- LDC1101_RES_OFF_L_MEAS_REF_CNT_DEF_CFG
LDC1101_REG_LHR_OFFSET_MSB ------------------------------------------------- LDC1101_RES_OFF_L_MEAS_REF_CNT_DEF_CFG
LDC1101_REG_CFG_LHR ------------------------------------------------- LDC1101_SENSOR_FREQ_DIV_NO
LDC1101_REG_CFG_RP_MEASUREMENT_DYNAMIC_RANGE ------------------------------------------------- LDC1101_RP_SET_RP_MAX_24KOhm LDC1101_RP_SET_RP_MIN_1_5KOhm
LDC1101_REG_CFG_INTERNAL_TIME_CONSTANT_1
LDC1101_TC1_C1_0_75pF LDC1101_TC1_R1_21_1kOhm
LDC1101_REG_CFG_INTERNAL_TIME_CONSTANT_2 ------------------------------------------------- LDC1101_TC2_C2_3pF LDC1101_TC2_R2_30_5kOhm
LDC1101_REG_CFG_RP_L_CONVERSION_INTERVAL
LDC1101_DIG_CFG_MIN_FREQ_118kHz LDC1101_DIG_CFG_RESP_TIME_768s
LDC1101_REG_CFG_POWER_STATE ------------------------------------------------- LDC1101_FUNC_MODE_ACTIVE_CONVERSION_MODE
uint8_t ldc1101_generic_read | ( | ldc1101_t * | ctx, |
uint8_t | reg_addr ) |
Functions for read byte from address.
ctx | Click object. |
reg_addr | Address in which the data will be written. |
@description Generic SPI transfer, for sending packages.
void ldc1101_generic_transfer | ( | ldc1101_t * | ctx, |
uint8_t * | wr_buf, | ||
uint16_t | wr_len, | ||
uint8_t * | rd_buf, | ||
uint16_t | rd_len ) |
Generic transfer function.
ctx | Click object. |
wr_buf | Write data buffer |
wr_len | Number of byte in write data buffer |
rd_buf | Read data buffer |
rd_len | Number of byte in read data buffer |
@description Generic SPI transfer, for sending and receiving packages
void ldc1101_generic_write | ( | ldc1101_t * | ctx, |
uint8_t | reg_addr, | ||
uint8_t | tx_data ) |
Functions for write one byte on address.
ctx | Click object. |
reg_addr | Address in which the data will be written. |
tx_data | Data which be written on the address. |
@description Generic SPI read, for receiving packages.
uint8_t ldc1101_get_interrupt | ( | ldc1101_t * | ctx | ) |
Functions for get interrupt pin status.
ctx | Click object. |
uint16_t ldc1101_get_l_data | ( | ldc1101_t * | ctx | ) |
Functions for reads L data.
ctx | Click object. |
uint16_t ldc1101_get_rp_data | ( | ldc1101_t * | ctx | ) |
Functions for reads RP data.
ctx | Click object. |
uint8_t ldc1101_get_status | ( | ldc1101_t * | ctx | ) |
Functions for reads status.
ctx | Click object. |
void ldc1101_go_to_l_mode | ( | ldc1101_t * | ctx | ) |
Functions for go to L mode.
ctx | Click object. |
void ldc1101_go_to_r_mode | ( | ldc1101_t * | ctx | ) |
Functions for go to RP mode.
ctx | Click object. |
LDC1101_RETVAL ldc1101_init | ( | ldc1101_t * | ctx, |
ldc1101_cfg_t * | cfg ) |
Initialization function.
ldc1101 | Click object. |
cfg | Click configuration structure. |
@description This function initializes all necessary pins and peripherals used for this click.
void ldc1101_set_power_mode | ( | ldc1101_t * | ctx, |
uint8_t | pwr_mode ) |
Set power mode function.
ctx | Click object. |
pwr_mode | Mode to be set. - 0 : LDC1101_FUNC_MODE_ACTIVE_CONVERSION_MODE; - 1 : LDC1101_FUNC_MODE_SLEEP_MODE; - 2 : LDC1101_FUNC_MODE_SHUTDOWN_MODE; *@description Function set power mode. |