![]() |
LibDriver AD7705
|
ad7705 base driver modules More...
Data Structures | |
| struct | ad7705_handle_s |
| ad7705 handle structure definition More... | |
| struct | ad7705_info_s |
| ad7705 information structure definition More... | |
Typedefs | |
| typedef struct ad7705_handle_s | ad7705_handle_t |
| ad7705 handle structure definition | |
| typedef struct ad7705_info_s | ad7705_info_t |
| ad7705 information structure definition | |
Functions | |
| uint8_t | ad7705_info (ad7705_info_t *info) |
| get chip's information | |
| uint8_t | ad7705_init (ad7705_handle_t *handle) |
| initialize the chip | |
| uint8_t | ad7705_deinit (ad7705_handle_t *handle) |
| close the chip | |
| uint8_t | ad7705_set_reference_voltage (ad7705_handle_t *handle, float voltage) |
| set reference voltage | |
| uint8_t | ad7705_get_reference_voltage (ad7705_handle_t *handle, float *voltage) |
| get reference voltage | |
| uint8_t | ad7705_set_channel (ad7705_handle_t *handle, ad7705_channel_t channel) |
| set channel | |
| uint8_t | ad7705_get_channel (ad7705_handle_t *handle, ad7705_channel_t *channel) |
| get channel | |
| uint8_t | ad7705_read (ad7705_handle_t *handle, uint16_t *raw, float *volt) |
| read adc | |
| uint8_t | ad7705_get_data_ready (ad7705_handle_t *handle, ad7705_bool_t *enable) |
| get data ready | |
| uint8_t | ad7705_power_on (ad7705_handle_t *handle) |
| power on | |
| uint8_t | ad7705_power_down (ad7705_handle_t *handle) |
| power down | |
| uint8_t | ad7705_set_adc_mode (ad7705_handle_t *handle, ad7705_adc_mode_t mode) |
| set adc mode | |
| uint8_t | ad7705_get_adc_mode (ad7705_handle_t *handle, ad7705_adc_mode_t *mode) |
| get adc mode | |
| uint8_t | ad7705_set_adc_gain (ad7705_handle_t *handle, ad7705_adc_gain_t gain) |
| set adc gain | |
| uint8_t | ad7705_get_adc_gain (ad7705_handle_t *handle, ad7705_adc_gain_t *gain) |
| get adc gain | |
| uint8_t | ad7705_set_adc_polar (ad7705_handle_t *handle, ad7705_adc_polar_t polar) |
| set adc polar | |
| uint8_t | ad7705_get_adc_polar (ad7705_handle_t *handle, ad7705_adc_polar_t *polar) |
| get adc polar | |
| uint8_t | ad7705_set_adc_buffer (ad7705_handle_t *handle, ad7705_bool_t enable) |
| enable or disable adc buffer | |
| uint8_t | ad7705_get_adc_buffer (ad7705_handle_t *handle, ad7705_bool_t *enable) |
| get adc buffer status | |
| uint8_t | ad7705_set_filter_synchronize (ad7705_handle_t *handle, ad7705_bool_t enable) |
| enable or disable filter synchronize | |
| uint8_t | ad7705_get_filter_synchronize (ad7705_handle_t *handle, ad7705_bool_t *enable) |
| get filter synchronize status | |
| uint8_t | ad7705_set_master_clock_output_disable (ad7705_handle_t *handle, ad7705_bool_t enable) |
| enable or disable master clock output disable | |
| uint8_t | ad7705_get_master_clock_output_disable (ad7705_handle_t *handle, ad7705_bool_t *enable) |
| get master clock output disable status | |
| uint8_t | ad7705_set_clock_div2 (ad7705_handle_t *handle, ad7705_bool_t enable) |
| enable or disable clock div2 | |
| uint8_t | ad7705_get_clock_div2 (ad7705_handle_t *handle, ad7705_bool_t *enable) |
| get clock div2 status | |
| uint8_t | ad7705_set_rate (ad7705_handle_t *handle, ad7705_rate_t rate) |
| set rate | |
| uint8_t | ad7705_get_rate (ad7705_handle_t *handle, ad7705_rate_t *rate) |
| get rate | |
| uint8_t | ad7705_get_data (ad7705_handle_t *handle, uint16_t *data) |
| get data | |
| uint8_t | ad7705_set_test (ad7705_handle_t *handle, uint8_t data) |
| set test data | |
| uint8_t | ad7705_get_test (ad7705_handle_t *handle, uint8_t *data) |
| get test data | |
| uint8_t | ad7705_set_zero_scale_calibration (ad7705_handle_t *handle, uint32_t calibration) |
| set zero scale calibration | |
| uint8_t | ad7705_get_zero_scale_calibration (ad7705_handle_t *handle, uint32_t *calibration) |
| get zero scale calibration | |
| uint8_t | ad7705_set_full_scale_calibration (ad7705_handle_t *handle, uint32_t calibration) |
| set full scale calibration | |
| uint8_t | ad7705_get_full_scale_calibration (ad7705_handle_t *handle, uint32_t *calibration) |
| get full scale calibration | |
| uint8_t | ad7705_operate_sync (ad7705_handle_t *handle) |
| operate sync | |
ad7705 base driver modules
| typedef struct ad7705_handle_s ad7705_handle_t |
ad7705 handle structure definition
| typedef struct ad7705_info_s ad7705_info_t |
ad7705 information structure definition
| enum ad7705_adc_gain_t |
ad7705 adc gain enumeration definition
| Enumerator | |
|---|---|
| AD7705_ADC_GAIN_1 | 1x |
| AD7705_ADC_GAIN_2 | 2x |
| AD7705_ADC_GAIN_4 | 4x |
| AD7705_ADC_GAIN_8 | 8x |
| AD7705_ADC_GAIN_16 | 16x |
| AD7705_ADC_GAIN_32 | 32x |
| AD7705_ADC_GAIN_64 | 64x |
| AD7705_ADC_GAIN_128 | 128x |
Definition at line 93 of file driver_ad7705.h.
| enum ad7705_adc_mode_t |
ad7705 adc mode enumeration definition
Definition at line 82 of file driver_ad7705.h.
| enum ad7705_adc_polar_t |
ad7705 adc polar enumeration definition
| Enumerator | |
|---|---|
| AD7705_ADC_POLAR_BIPOLAR | bipolar operation |
| AD7705_ADC_POLAR_UNIPOLAR | unipolar operation |
Definition at line 108 of file driver_ad7705.h.
| enum ad7705_bool_t |
ad7705 bool enumeration definition
| Enumerator | |
|---|---|
| AD7705_BOOL_FALSE | disable |
| AD7705_BOOL_TRUE | enable |
Definition at line 62 of file driver_ad7705.h.
| enum ad7705_channel_t |
ad7705 channel enumeration definition
Definition at line 71 of file driver_ad7705.h.
| enum ad7705_rate_t |
ad7705 rate enumeration definition
| Enumerator | |
|---|---|
| AD7705_RATE_20HZ | 20hz |
| AD7705_RATE_25HZ | 25hz |
| AD7705_RATE_100HZ | 100hz |
| AD7705_RATE_200HZ | 200hz |
| AD7705_RATE_50HZ | 50hz |
| AD7705_RATE_60HZ | 60hz |
| AD7705_RATE_250HZ | 250hz |
| AD7705_RATE_500HZ | 500hz |
Definition at line 117 of file driver_ad7705.h.
| uint8_t ad7705_deinit | ( | ad7705_handle_t * | handle | ) |
close the chip
| [in] | *handle | pointer to an ad7705 handle structure |
Definition at line 1538 of file driver_ad7705.c.
| uint8_t ad7705_get_adc_buffer | ( | ad7705_handle_t * | handle, |
| ad7705_bool_t * | enable ) |
get adc buffer status
| [in] | *handle | pointer to an ad7705 handle structure |
| [out] | *enable | pointer to a bool value buffer |
Definition at line 539 of file driver_ad7705.c.
| uint8_t ad7705_get_adc_gain | ( | ad7705_handle_t * | handle, |
| ad7705_adc_gain_t * | gain ) |
get adc gain
| [in] | *handle | pointer to an ad7705 handle structure |
| [out] | *gain | pointer to an adc gain buffer |
Definition at line 375 of file driver_ad7705.c.
| uint8_t ad7705_get_adc_mode | ( | ad7705_handle_t * | handle, |
| ad7705_adc_mode_t * | mode ) |
get adc mode
| [in] | *handle | pointer to an ad7705 handle structure |
| [out] | *mode | pointer to an adc mode buffer |
Definition at line 293 of file driver_ad7705.c.
| uint8_t ad7705_get_adc_polar | ( | ad7705_handle_t * | handle, |
| ad7705_adc_polar_t * | polar ) |
get adc polar
| [in] | *handle | pointer to an ad7705 handle structure |
| [out] | *polar | pointer to an adc polar buffer |
Definition at line 457 of file driver_ad7705.c.
| uint8_t ad7705_get_channel | ( | ad7705_handle_t * | handle, |
| ad7705_channel_t * | channel ) |
get channel
| [in] | *handle | pointer to an ad7705 handle structure |
| [out] | *channel | pointer to an input channel buffer |
Definition at line 150 of file driver_ad7705.c.
| uint8_t ad7705_get_clock_div2 | ( | ad7705_handle_t * | handle, |
| ad7705_bool_t * | enable ) |
get clock div2 status
| [in] | *handle | pointer to an ad7705 handle structure |
| [out] | *enable | pointer to a bool value buffer |
Definition at line 787 of file driver_ad7705.c.
| uint8_t ad7705_get_data | ( | ad7705_handle_t * | handle, |
| uint16_t * | data ) |
get data
| [in] | *handle | pointer to an ad7705 handle structure |
| [out] | *data | pointer to a data buffer |
Definition at line 907 of file driver_ad7705.c.
| uint8_t ad7705_get_data_ready | ( | ad7705_handle_t * | handle, |
| ad7705_bool_t * | enable ) |
get data ready
| [in] | *handle | pointer to an ad7705 handle structure |
| [out] | *enable | pointer to a bool value buffer |
Definition at line 1225 of file driver_ad7705.c.
| uint8_t ad7705_get_filter_synchronize | ( | ad7705_handle_t * | handle, |
| ad7705_bool_t * | enable ) |
get filter synchronize status
| [in] | *handle | pointer to an ad7705 handle structure |
| [out] | *enable | pointer to a bool value buffer |
Definition at line 621 of file driver_ad7705.c.
| uint8_t ad7705_get_full_scale_calibration | ( | ad7705_handle_t * | handle, |
| uint32_t * | calibration ) |
get full scale calibration
| [in] | *handle | pointer to an ad7705 handle structure |
| [out] | *calibration | pointer to a full scale calibration buffer |
Definition at line 1134 of file driver_ad7705.c.
| uint8_t ad7705_get_master_clock_output_disable | ( | ad7705_handle_t * | handle, |
| ad7705_bool_t * | enable ) |
get master clock output disable status
| [in] | *handle | pointer to an ad7705 handle structure |
| [out] | *enable | pointer to a bool value buffer |
Definition at line 704 of file driver_ad7705.c.
| uint8_t ad7705_get_rate | ( | ad7705_handle_t * | handle, |
| ad7705_rate_t * | rate ) |
get rate
| [in] | *handle | pointer to an ad7705 handle structure |
| [out] | *rate | pointer to a sample rate buffer |
Definition at line 870 of file driver_ad7705.c.
| uint8_t ad7705_get_reference_voltage | ( | ad7705_handle_t * | handle, |
| float * | voltage ) |
get reference voltage
| [in] | *handle | pointer to an ad7705 handle structure |
| [out] | *voltage | pointer to a reference voltage buffer |
Definition at line 1198 of file driver_ad7705.c.
| uint8_t ad7705_get_test | ( | ad7705_handle_t * | handle, |
| uint8_t * | data ) |
get test data
| [in] | *handle | pointer to an ad7705 handle structure |
| [out] | *data | pointer to a test data buffer |
Definition at line 982 of file driver_ad7705.c.
| uint8_t ad7705_get_zero_scale_calibration | ( | ad7705_handle_t * | handle, |
| uint32_t * | calibration ) |
get zero scale calibration
| [in] | *handle | pointer to an ad7705 handle structure |
| [out] | *calibration | pointer to a zero scale calibration buffer |
Definition at line 1056 of file driver_ad7705.c.
| uint8_t ad7705_info | ( | ad7705_info_t * | info | ) |
get chip's information
| [out] | *info | pointer to an ad7705 info structure |
Definition at line 1644 of file driver_ad7705.c.
| uint8_t ad7705_init | ( | ad7705_handle_t * | handle | ) |
initialize the chip
| [in] | *handle | pointer to an ad7705 handle structure |
Definition at line 1405 of file driver_ad7705.c.
| uint8_t ad7705_operate_sync | ( | ad7705_handle_t * | handle | ) |
operate sync
| [in] | *handle | pointer to an ad7705 handle structure |
Definition at line 1350 of file driver_ad7705.c.
| uint8_t ad7705_power_down | ( | ad7705_handle_t * | handle | ) |
power down
| [in] | *handle | pointer to an ad7705 handle structure |
Definition at line 176 of file driver_ad7705.c.
| uint8_t ad7705_power_on | ( | ad7705_handle_t * | handle | ) |
power on
| [in] | *handle | pointer to an ad7705 handle structure |
Definition at line 211 of file driver_ad7705.c.
| uint8_t ad7705_read | ( | ad7705_handle_t * | handle, |
| uint16_t * | raw, | ||
| float * | volt ) |
read adc
| [in] | *handle | pointer to an ad7705 handle structure |
| [out] | *raw | pointer to a raw data buffer |
| [out] | *volt | pointer to a converted voltage buffer |
Definition at line 1264 of file driver_ad7705.c.
| uint8_t ad7705_set_adc_buffer | ( | ad7705_handle_t * | handle, |
| ad7705_bool_t | enable ) |
enable or disable adc buffer
| [in] | *handle | pointer to an ad7705 handle structure |
| [in] | enable | bool value |
Definition at line 494 of file driver_ad7705.c.
| uint8_t ad7705_set_adc_gain | ( | ad7705_handle_t * | handle, |
| ad7705_adc_gain_t | gain ) |
set adc gain
| [in] | *handle | pointer to an ad7705 handle structure |
| [in] | gain | adc gain |
Definition at line 330 of file driver_ad7705.c.
| uint8_t ad7705_set_adc_mode | ( | ad7705_handle_t * | handle, |
| ad7705_adc_mode_t | mode ) |
set adc mode
| [in] | *handle | pointer to an ad7705 handle structure |
| [in] | mode | adc mode |
Definition at line 248 of file driver_ad7705.c.
| uint8_t ad7705_set_adc_polar | ( | ad7705_handle_t * | handle, |
| ad7705_adc_polar_t | polar ) |
set adc polar
| [in] | *handle | pointer to an ad7705 handle structure |
| [in] | polar | adc polar |
Definition at line 412 of file driver_ad7705.c.
| uint8_t ad7705_set_channel | ( | ad7705_handle_t * | handle, |
| ad7705_channel_t | channel ) |
set channel
| [in] | *handle | pointer to an ad7705 handle structure |
| [in] | channel | input channel |
Definition at line 124 of file driver_ad7705.c.
| uint8_t ad7705_set_clock_div2 | ( | ad7705_handle_t * | handle, |
| ad7705_bool_t | enable ) |
enable or disable clock div2
| [in] | *handle | pointer to an ad7705 handle structure |
| [in] | enable | bool value |
Definition at line 741 of file driver_ad7705.c.
| uint8_t ad7705_set_filter_synchronize | ( | ad7705_handle_t * | handle, |
| ad7705_bool_t | enable ) |
enable or disable filter synchronize
| [in] | *handle | pointer to an ad7705 handle structure |
| [in] | enable | bool value |
Definition at line 576 of file driver_ad7705.c.
| uint8_t ad7705_set_full_scale_calibration | ( | ad7705_handle_t * | handle, |
| uint32_t | calibration ) |
set full scale calibration
| [in] | *handle | pointer to an ad7705 handle structure |
| [in] | calibration | full scale calibration |
Definition at line 1095 of file driver_ad7705.c.
| uint8_t ad7705_set_master_clock_output_disable | ( | ad7705_handle_t * | handle, |
| ad7705_bool_t | enable ) |
enable or disable master clock output disable
| [in] | *handle | pointer to an ad7705 handle structure |
| [in] | enable | bool value |
Definition at line 658 of file driver_ad7705.c.
| uint8_t ad7705_set_rate | ( | ad7705_handle_t * | handle, |
| ad7705_rate_t | rate ) |
set rate
| [in] | *handle | pointer to an ad7705 handle structure |
| [in] | rate | sample rate |
Definition at line 824 of file driver_ad7705.c.
| uint8_t ad7705_set_reference_voltage | ( | ad7705_handle_t * | handle, |
| float | voltage ) |
set reference voltage
| [in] | *handle | pointer to an ad7705 handle structure |
| [in] | voltage | reference voltage |
Definition at line 1172 of file driver_ad7705.c.
| uint8_t ad7705_set_test | ( | ad7705_handle_t * | handle, |
| uint8_t | data ) |
set test data
| [in] | *handle | pointer to an ad7705 handle structure |
| [in] | data | test data |
Definition at line 945 of file driver_ad7705.c.
| uint8_t ad7705_set_zero_scale_calibration | ( | ad7705_handle_t * | handle, |
| uint32_t | calibration ) |
set zero scale calibration
| [in] | *handle | pointer to an ad7705 handle structure |
| [in] | calibration | zero scale calibration |
Definition at line 1017 of file driver_ad7705.c.