adc6 2.0.0.0
|
Functions | |
void | adc6_cfg_setup (adc6_cfg_t *cfg) |
Config Object Initialization function. | |
err_t | adc6_init (adc6_t *ctx, adc6_cfg_t *cfg) |
Initialization function. | |
void | adc6_default_cfg (adc6_t *ctx) |
Click Default Configuration function. | |
void | adc6_reset_device (adc6_t *ctx) |
Reset device. | |
uint32_t | adc6_get_adc_data (adc6_t *ctx) |
Get data function. | |
uint32_t | adc6_read_reg (adc6_t *ctx, uint8_t register_address) |
Generic read function. | |
void | adc6_write_reg (adc6_t *ctx, uint8_t register_address, uint32_t transfer_data) |
Generic write function. | |
void adc6_cfg_setup | ( | adc6_cfg_t * | cfg | ) |
Config Object Initialization function.
cfg | Click configuration structure. |
@description This function initializes click configuration structure to init state.
void adc6_default_cfg | ( | adc6_t * | ctx | ) |
Click Default Configuration function.
ctx | Click object. |
@description This function executes default configuration for ADC6 Click.
uint32_t adc6_get_adc_data | ( | adc6_t * | ctx | ) |
Get data function.
ctx | Click object. |
@description This function gets data from Data register in single read mode first starts conversion, then checks ready bit, and when conversion is done (data is ready) reads data from register.
err_t adc6_init | ( | adc6_t * | ctx, |
adc6_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.
uint32_t adc6_read_reg | ( | adc6_t * | ctx, |
uint8_t | register_address ) |
Generic read function.
ctx | Click object. |
register_address | Register address. |
@description This function reads data from determined register.
void adc6_reset_device | ( | adc6_t * | ctx | ) |
Reset device.
ctx | Click object. |
@description This function resets device and puts device back to normal operation mode.
void adc6_write_reg | ( | adc6_t * | ctx, |
uint8_t | register_address, | ||
uint32_t | transfer_data ) |
Generic write function.
ctx | Click object. |
register_address | Register address. |
@description This function writes data to determined register.