Pressure sensor driver.
More...
#include <unistd.h>
#include <stdint.h>
#include <stddef.h>
#include <ti/drivers/ADC.h>
#include <semaphore.h>
#include "ti_drivers_config.h"
Go to the source code of this file.
Pressure sensor driver.
- Author
- Jesus Minjares
- See also
- https://github.com/jminjares4
- Author
- Erick A. Baca
- See also
- https://github.com/eabaca2419
- Version
- 0.1
- Date
- 2022-05-20
- Copyright
- Copyright (c) 2022
◆ PRESSURE_SENSOR_SAMPLE
#define PRESSURE_SENSOR_SAMPLE 10 |
Pressure Sensor Max Samples
◆ Pressure_Sensor_init()
void Pressure_Sensor_init |
( |
void |
| ) |
|
Pressure Sensor Initialize.
Detailed description starts here
- Parameters
-
- Returns
- None
◆ Pressure_Sensor_start()
void Pressure_Sensor_start |
( |
Timer_Handle * |
pressureSensorHandle, |
|
|
Timer_Params * |
pressureSensorParam |
|
) |
| |
Pressure Sensor Timer Start.
Detailed description starts here
- Parameters
-
pressureSensorHandle | pressure sensor timer handle |
pressureSensorParam | pressure sensor timer parameters |
- Returns
- None
◆ Pressure_Sensor_Timer_init()
void Pressure_Sensor_Timer_init |
( |
Timer_Handle * |
pressureSensorHandle, |
|
|
Timer_Params * |
pressureSensorParam, |
|
|
uint16_t |
hertz |
|
) |
| |
Pressure Sensor Timer Initialize.
Detailed description starts here
- Parameters
-
pressureSensorHandle | pressure sensor timer handle |
pressureSensorParam | pressure sensor timer parameters |
hertz | pressure sensor timer frequency |
- Returns
- None
◆ pressureSensorCallback()
void pressureSensorCallback |
( |
Timer_Handle |
handle | ) |
|
Pressure Sensor Timer Callback.
Detailed description starts here
- Parameters
-
handle | pressure sensor timer handle |
- Returns
- None
◆ adcAvg
◆ adcBuf
◆ adcHandle
◆ pressureSensorSem