Source file to check external ADC test.
More...
#include <stdio.h>
#include <stdlib.h>
#include <sys/ioctl.h>
#include <linux/gpio.h>
#include <fcntl.h>
#include <linux/spi/spidev.h>
#include <string.h>
#include <errno.h>
#include <unistd.h>
#include <pthread.h>
#include <sys/eventfd.h>
#include <sys/epoll.h>
#include <stdint.h>
#include <time.h>
#include <getopt.h>
#include <sys/time.h>
#include <linux/types.h>
#include <linux/i2c-dev.h>
#include "main.h"
Source file to check external ADC test.
◆ I2C_ADDR_EX
◆ I2C_DEVICE
#define I2C_DEVICE "/dev/i2c-1" |
◆ external_adc()
int external_adc |
( |
void | | ) |
|
Function to test the External ADC.
- Returns
- API_FAILURE_test on failure or API_SUCCESS_test on success
◆ external_adc_reading_voltage()
float external_adc_reading_voltage |
( |
int | i2cFile_ex_va | ) |
|
To read the voltage of the VA measured using external adc.
- Parameters
-
i2cFile_ex_va | file discriptor |
- Returns
- voltage_va Value of the voltage read
◆ i2c_va_led_file
◆ i2cmsg
◆ msg_rdwr
struct i2c_rdwr_ioctl_data msg_rdwr |
|
extern |