MAX116XX ADC driver.
More...
#include "max116xx.h"
#include "i2c.h"
◆ max116xx_read_bip()
mmc_err max116xx_read_bip |
( |
uint8_t | chip_id, |
|
|
int16_t | data[], |
|
|
uint8_t | samples ) |
Convert and read single or multiple channels, bipolar mode.
- Parameters
-
[in] | chip_id | Chip ID to communicate |
[out] | data | Array containing the samples, -512 - +511 range |
[in] | samples | Number of samples requested |
- Returns
- MMC_OK if success, an error code otherwise
◆ max116xx_read_uni()
mmc_err max116xx_read_uni |
( |
uint8_t | chip_id, |
|
|
int16_t | data[], |
|
|
uint8_t | samples ) |
Convert and read single or multiple channels, unipolar mode.
- Parameters
-
[in] | chip_id | Chip ID to communicate |
[out] | data | Array containing the samples, 0 - +1023 range |
[in] | samples | Number of samples requested |
- Returns
- MMC_OK if success, an error code otherwise
◆ max116xx_set_config()
Configure the MAX11606-MAX11611 ADC.
- Parameters
-
[in] | chip_id | Chip ID to communicate |
[in] | cfg | max116xx_cfg struct with the current configuration |
- Returns
- MMC_OK if success, an error code otherwise