|
void | adac2_cfg_setup (adac2_cfg_t *cfg) |
| ADAC 2 configuration object setup function.
|
|
err_t | adac2_init (adac2_t *ctx, adac2_cfg_t *cfg) |
| ADAC 2 initialization function.
|
|
err_t | adac2_default_cfg (adac2_t *ctx) |
| ADAC 2 default configuration function.
|
|
err_t | adac2_write_register (adac2_t *ctx, uint8_t reg, uint32_t data_in) |
| ADAC 2 write register function.
|
|
err_t | adac2_read_register (adac2_t *ctx, uint8_t reg, uint32_t *data_out) |
| ADAC 2 read register function.
|
|
err_t | adac2_enable_spi_crc (adac2_t *ctx) |
| ADAC 2 enable spi crc function.
|
|
err_t | adac2_disable_spi_crc (adac2_t *ctx) |
| ADAC 2 disable spi crc function.
|
|
err_t | adac2_check_communication (adac2_t *ctx) |
| ADAC 2 check communication function.
|
|
void | adac2_reset_device (adac2_t *ctx) |
| ADAC 2 reset device function.
|
|
uint8_t | adac2_get_rdy_pin (adac2_t *ctx) |
| ADAC 2 get rdy pin function.
|
|
uint8_t | adac2_get_int_pin (adac2_t *ctx) |
| ADAC 2 get int pin function.
|
|
err_t | adac2_start_conversion (adac2_t *ctx, uint8_t data_rate) |
| ADAC 2 start conversion function.
|
|
err_t | adac2_stop_conversion (adac2_t *ctx) |
| ADAC 2 stop conversion function.
|
|
err_t | adac2_set_conversion_mode (adac2_t *ctx, uint8_t mode) |
| ADAC 2 set conversion mode function.
|
|
err_t | adac2_set_active_ain_channel (adac2_t *ctx, uint8_t channel) |
| ADAC 2 set active ain channel function.
|
|
err_t | adac2_read_raw_adc (adac2_t *ctx, int32_t *raw_adc) |
| ADAC 2 read raw adc function.
|
|
err_t | adac2_read_voltage (adac2_t *ctx, float fsr, float *voltage) |
| ADAC 2 read voltage function.
|
|
err_t | adac2_write_dac (adac2_t *ctx, int32_t dac) |
| ADAC 2 write dac function.
|
|
This file contains API for ADAC 2 Click Driver.