IPIA Senior Project V2.0
Spring-Fall 2020
Loading...
Searching...
No Matches
PressureSensor.h
Go to the documentation of this file.
1
13#ifndef PRESSURESENSOR_H_
14#define PRESSURESENSOR_H_
15#include <unistd.h>
16#include <stdint.h>
17#include <stddef.h>
18#include <ti/drivers/ADC.h>
19#include <semaphore.h>
20#include "ti_drivers_config.h"
21/* ADC semaphore */
23/*Global Variables*/
24#define PRESSURE_SENSOR_SAMPLE 10
26uint32_t adcAvg;
27ADC_Handle adcHandle;
29
36void Pressure_Sensor_init(void);
37/*Initialize Pressure Sensor Timer*/
38
39
48void Pressure_Sensor_Timer_init(Timer_Handle *pressureSensorHandle, Timer_Params *pressureSensorParam,uint16_t hertz);
49
50
58void Pressure_Sensor_start(Timer_Handle *pressureSensorHandle, Timer_Params *pressureSensorParam);
59
60
61
68void pressureSensorCallback(Timer_Handle handle);
69
70#endif /* PRESSURESENSOR_H_ */
void Pressure_Sensor_start(Timer_Handle *pressureSensorHandle, Timer_Params *pressureSensorParam)
Pressure Sensor Timer Start.
Definition: PressureSensor.c:44
uint16_t adcBuf[PRESSURE_SENSOR_SAMPLE]
Definition: PressureSensor.h:25
ADC_Handle adcHandle
Definition: PressureSensor.h:27
void Pressure_Sensor_init(void)
Pressure Sensor Initialize.
Definition: PressureSensor.c:15
void Pressure_Sensor_Timer_init(Timer_Handle *pressureSensorHandle, Timer_Params *pressureSensorParam, uint16_t hertz)
Pressure Sensor Timer Initialize.
Definition: PressureSensor.c:31
sem_t pressureSensorSem
Definition: PressureSensor.h:22
uint32_t adcAvg
Definition: PressureSensor.h:26
#define PRESSURE_SENSOR_SAMPLE
Definition: PressureSensor.h:24
void pressureSensorCallback(Timer_Handle handle)
Pressure Sensor Timer Callback.
Definition: PressureSensor.c:58