![]() |
LibDriver AD7705
|
driver ad7705 source file More...
Go to the source code of this file.
Macros | |
| #define | CHIP_NAME "Analog Devices AD7705" |
| chip information definition | |
| #define | MANUFACTURER_NAME "Analog Devices" |
| #define | SUPPLY_VOLTAGE_MIN 2.7f |
| #define | SUPPLY_VOLTAGE_MAX 5.25f |
| #define | MAX_CURRENT 1.3f |
| #define | TEMPERATURE_MIN -20.0f |
| #define | TEMPERATURE_MAX 85.0f |
| #define | DRIVER_VERSION 1000 |
| #define | AD7705_REG_COMMUNICATION 0x00 |
| chip register definition | |
| #define | AD7705_REG_SETUP 0x01 |
| #define | AD7705_REG_CLOCK 0x02 |
| #define | AD7705_REG_DATA 0x03 |
| #define | AD7705_REG_TEST 0x04 |
| #define | AD7705_REG_NO_OPERATION 0x05 |
| #define | AD7705_REG_OFFSET 0x06 |
| #define | AD7705_REG_GAIN 0x07 |
Functions | |
| 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_power_down (ad7705_handle_t *handle) |
| power down | |
| uint8_t | ad7705_power_on (ad7705_handle_t *handle) |
| power on | |
| 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_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_get_data_ready (ad7705_handle_t *handle, ad7705_bool_t *enable) |
| get data ready | |
| uint8_t | ad7705_read (ad7705_handle_t *handle, uint16_t *raw, float *volt) |
| read adc | |
| uint8_t | ad7705_operate_sync (ad7705_handle_t *handle) |
| operate sync | |
| 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_reg (ad7705_handle_t *handle, uint8_t addr, uint8_t *buf, uint16_t len) |
| set the chip register | |
| uint8_t | ad7705_get_reg (ad7705_handle_t *handle, uint8_t addr, uint8_t *buf, uint16_t len) |
| get the chip register | |
| uint8_t | ad7705_info (ad7705_info_t *info) |
| get chip's information | |
driver ad7705 source file
Copyright (c) 2015 - present LibDriver All rights reserved
The MIT License (MIT)
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
| Date | Version | Author | Description |
|---|---|---|---|
| 2025/12/30 | 1.0 | Shifeng Li | first upload |
Definition in file driver_ad7705.c.
| #define AD7705_REG_CLOCK 0x02 |
clock register
Definition at line 57 of file driver_ad7705.c.
| #define AD7705_REG_COMMUNICATION 0x00 |
| #define AD7705_REG_DATA 0x03 |
data register
Definition at line 58 of file driver_ad7705.c.
| #define AD7705_REG_GAIN 0x07 |
gain register
Definition at line 62 of file driver_ad7705.c.
| #define AD7705_REG_NO_OPERATION 0x05 |
no operation register
Definition at line 60 of file driver_ad7705.c.
| #define AD7705_REG_OFFSET 0x06 |
offset register
Definition at line 61 of file driver_ad7705.c.
| #define AD7705_REG_SETUP 0x01 |
setup register
Definition at line 56 of file driver_ad7705.c.
| #define AD7705_REG_TEST 0x04 |
test register
Definition at line 59 of file driver_ad7705.c.
| #define CHIP_NAME "Analog Devices AD7705" |
| #define DRIVER_VERSION 1000 |
driver version
Definition at line 50 of file driver_ad7705.c.
| #define MANUFACTURER_NAME "Analog Devices" |
manufacturer name
Definition at line 44 of file driver_ad7705.c.
| #define MAX_CURRENT 1.3f |
chip max current
Definition at line 47 of file driver_ad7705.c.
| #define SUPPLY_VOLTAGE_MAX 5.25f |
chip max supply voltage
Definition at line 46 of file driver_ad7705.c.
| #define SUPPLY_VOLTAGE_MIN 2.7f |
chip min supply voltage
Definition at line 45 of file driver_ad7705.c.
| #define TEMPERATURE_MAX 85.0f |
chip max operating temperature
Definition at line 49 of file driver_ad7705.c.
| #define TEMPERATURE_MIN -20.0f |
chip min operating temperature
Definition at line 48 of file driver_ad7705.c.