irdistance 2.0.0.0
|
Functions | |
void | irdistance_cfg_setup (irdistance_cfg_t *cfg) |
Config Object Initialization function. | |
err_t | irdistance_init (irdistance_t *ctx, irdistance_cfg_t *cfg) |
Initialization function. | |
void | irdistance_enable_device (irdistance_t *ctx) |
Enable IR sensor function. | |
void | irdistance_disable_device (irdistance_t *ctx) |
Disable IR sensor function. | |
err_t | irdistance_read_adc (irdistance_t *ctx, uint16_t *data_out) |
Generic read function. | |
err_t | irdistance_get_pin_voltage (irdistance_t *ctx, float *data_out) |
Get the voltage output of the sensor function. | |
void irdistance_cfg_setup | ( | irdistance_cfg_t * | cfg | ) |
Config Object Initialization function.
cfg | Click configuration structure. |
@description This function initializes click configuration structure to init state.
void irdistance_disable_device | ( | irdistance_t * | ctx | ) |
Disable IR sensor function.
ctx | Click object. |
@description Function disables distance measuring on the sensor by clearing EN pin on the IR distance click board.
void irdistance_enable_device | ( | irdistance_t * | ctx | ) |
Enable IR sensor function.
ctx | Click object. |
@description Function enables distance measuring on the sensor by setting EN pin on the IR distance click board.
err_t irdistance_get_pin_voltage | ( | irdistance_t * | ctx, |
float * | data_out ) |
Get the voltage output of the sensor function.
ctx | Click object. |
data_out | Voltage value on the pin. |
@description This function reads voltage value on the pin.
err_t irdistance_init | ( | irdistance_t * | ctx, |
irdistance_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.
err_t irdistance_read_adc | ( | irdistance_t * | ctx, |
uint16_t * | data_out ) |
Generic read function.
ctx | Click object. |
data_out | ADC value on the pin. |
@description This function reads ADC value on the pin.