ENTS-tock
Environmental NeTworked Sensor firmware on Tock OS
Loading...
Searching...
No Matches
ads1219.h File Reference

This file contains all the function prototypes for the ads.c file. More...

#include <stdint.h>
#include <stdio.h>
#include "../proto/sensor.pb.h"

Go to the source code of this file.

Enumerations

enum  ads1219_status {
  ADS1219_SUCCESS , ADS1219_ERROR = -1 , ADS1219_CONFIGURE = -2 , ADS1219_MEASURE = -3 ,
  ADS1219_CONVERSION = -4
}
 

Functions

int ads1219_reset (void)
 This function starts up the ADS1219.
 
int ads1219_voltage (double *voltage)
 This function reads the current ADC voltage value.
 
int ads1219_voltage_raw (uint32_t *voltage)
 
int ads1219_current (double *current)
 This function reads the current ADC ampere value.
 
int ads1219_current_raw (uint32_t *current)
 
uint8_t ads1219_sensor_voltage (uint8_t *data, Metadata meta, uint32_t idx)
 Sensor measure functions.
 
uint8_t ads1219_sensor_current (uint8_t *data, Metadata meta, uint32_t idx)
 

Detailed Description

This file contains all the function prototypes for the ads.c file.

Author
Stephen Taylor
Date
11/27/2023

This file was copied and modified from the ENTS libraries

Copyright [2023] <Stephen Taylor>

Definition in file ads1219.h.