upm
1.1.0
Sensor/Actuator repository for libmraa (v1.5.1)
|
Go to the source code of this file.
Data Structures | |
struct | _abpdrrt005pg2a5_context |
Functions | |
abpdrrt005pg2a5_context | abpdrrt005pg2a5_init (uint8_t bus, uint8_t dev_address) |
void | abpdrrt005pg2a5_close (abpdrrt005pg2a5_context dev) |
upm_result_t | abpdrrt005pg2a5_get_pressure_psi (abpdrrt005pg2a5_context dev, float *pressure_psi) |
upm_result_t | abpdrrt005pg2a5_get_pressure_pascal (abpdrrt005pg2a5_context dev, float *pressure_pascal) |
Macros | |
#define | ABPDRRT005PG2A5_ADDRESS 0x28 |
#define | OUTPUT_10_PERCENT_COUNT 1638 |
#define | OUTPUT_90_PERCENT_COUNT 14746 |
#define | ABPDRRT005PG2A5_PRESSURE_MAX 5 |
#define | ABPDRRT005PG2A5_PRESSURE_MIN 0 |
Typedefs | |
typedef struct _abpdrrt005pg2a5_context * | abpdrrt005pg2a5_context |
abpdrrt005pg2a5_context abpdrrt005pg2a5_init | ( | uint8_t | bus, |
uint8_t | dev_address | ||
) |
ABPDRRT005PG2A5 Initialization function
bus | I2C bus to use |
void abpdrrt005pg2a5_close | ( | abpdrrt005pg2a5_context | dev | ) |
ABPDRRT005PG2A5 Close function
dev | abpdrrt005pg2a5_context pointer |
upm_result_t abpdrrt005pg2a5_get_pressure_psi | ( | abpdrrt005pg2a5_context | dev, |
float * | pressure_psi | ||
) |
Function to get the pressure in psi The datasheet provides a way to calculate the pressure in psi.
upm_result_t abpdrrt005pg2a5_get_pressure_pascal | ( | abpdrrt005pg2a5_context | dev, |
float * | pressure_pascal | ||
) |
Function to get the pressure in pascal This is calculated using a conversion function.