1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309 |
- #ifndef __LPS25HB_DRIVER__H
- #define __LPS25HB_DRIVER__H
- #include "esp_common.h"
- #ifdef USE_FULL_ASSERT_LPS25HB
- #define LPS25HB_assert_param(expr) ((expr) ? (void)0 : LPS25HB_assert_failed((uint8_t *)__FILE__, __LINE__))
- void LPS25HB_assert_failed(uint8_t* file, uint32_t line);
- #else
- #define LPS25HB_assert_param(expr) ((void)0)
- #endif
- #ifdef __cplusplus
- extern "C" {
- #endif
- typedef enum {LPS25HB_OK = (uint8_t)0, LPS25HB_ERROR = !LPS25HB_OK} LPS25HB_Error_et;
- typedef enum {LPS25HB_DISABLE = (uint8_t)0, LPS25HB_ENABLE = !LPS25HB_DISABLE} LPS25HB_State_et;
- #define IS_LPS25HB_State(MODE) ((MODE == LPS25HB_ENABLE) || (MODE == LPS25HB_DISABLE) )
- typedef enum {LPS25HB_RESET = (uint8_t)0, LPS25HB_SET = !LPS25HB_RESET} LPS25HB_BitStatus_et;
- #define IS_LPS25HB_BitStatus(MODE) ((MODE == LPS25HB_RESET) || (MODE == LPS25HB_SET))
- typedef enum {
- LPS25HB_AVGP_8 = (uint8_t)0x00,
- LPS25HB_AVGP_32 = (uint8_t)0x01,
- LPS25HB_AVGP_128 = (uint8_t)0x02,
- LPS25HB_AVGP_512 = (uint8_t)0x03
- }LPS25HB_Avgp_et;
- #define IS_LPS25HB_AVGP(AVGP) ((AVGP == LPS25HB_AVGP_8) || (AVGP == LPS25HB_AVGP_32) || \
- (AVGP == LPS25HB_AVGP_128) || (AVGP == LPS25HB_AVGP_512))
- typedef enum {
- LPS25HB_AVGT_8 = (uint8_t)0x00,
- LPS25HB_AVGT_16 = (uint8_t)0x04,
- LPS25HB_AVGT_32 = (uint8_t)0x08,
- LPS25HB_AVGT_64 = (uint8_t)0x0C
- }LPS25HB_Avgt_et;
- #define IS_LPS25HB_AVGT(AVGT) ((AVGT == LPS25HB_AVGT_8) || (AVGT == LPS25HB_AVGT_16) || \
- (AVGT == LPS25HB_AVGT_32) || (AVGT == LPS25HB_AVGT_64))
- typedef enum {
- LPS25HB_ODR_ONE_SHOT = (uint8_t)0x00,
- LPS25HB_ODR_1HZ = (uint8_t)0x10,
- LPS25HB_ODR_7HZ = (uint8_t)0x20,
- LPS25HB_ODR_12_5HZ = (uint8_t)0x30,
- LPS25HB_ODR_25HZ = (uint8_t)0x40
- } LPS25HB_Odr_et;
- #define IS_LPS25HB_ODR(ODR) ((ODR == LPS25HB_ODR_ONE_SHOT) || (ODR == LPS25HB_ODR_1HZ) || \
- (ODR == LPS25HB_ODR_7HZ) || (ODR == LPS25HB_ODR_12_5HZ)|| (ODR == LPS25HB_ODR_25HZ))
- typedef enum {
- LPS25HB_SPI_4_WIRE = (uint8_t)0x00,
- LPS25HB_SPI_3_WIRE = (uint8_t)0x01
- } LPS25HB_SPIMode_et;
- #define IS_LPS25HB_SPIMode(MODE) ((MODE == LPS25HB_SPI_4_WIRE) || (MODE == LPS25HB_SPI_3_WIRE))
- typedef enum {
- LPS25HB_BDU_CONTINUOUS_UPDATE = (uint8_t)0x00,
- LPS25HB_BDU_NO_UPDATE = (uint8_t)0x04
- } LPS25HB_Bdu_et;
- #define IS_LPS25HB_BDUMode(MODE) ((MODE == LPS25HB_BDU_CONTINUOUS_UPDATE) || (MODE == LPS25HB_BDU_NO_UPDATE))
- typedef enum
- {
- LPS25HB_DATA = (uint8_t)0x00,
- LPS25HB_P_HIGH = (uint8_t)0x01,
- LPS25HB_P_LOW = (uint8_t)0x02,
- LPS25HB_P_LOW_HIGH = (uint8_t)0x03
- }LPS25HB_OutputSignalConfig_et;
- #define IS_LPS25HB_OutputSignal(MODE) ((MODE == LPS25HB_DATA) || (MODE == LPS25HB_P_HIGH)||\
- (MODE == LPS25HB_P_LOW) || (MODE == LPS25HB_P_LOW_HIGH))
- typedef enum
- {
- LPS25HB_DISABLE_DATA_INT = (uint8_t)0x00,
- LPS25HB_DATA_READY = (uint8_t)0x01,
- LPS25HB_OVR = (uint8_t)0x02,
- LPS25HB_WTM = (uint8_t)0x04,
- LPS25HB_EMPTY = (uint8_t)0x08
- }LPS25HB_DataSignalType_et;
- #define IS_LPS25HB_DataSignal(MODE) ((MODE == LPS25HB_DISABLE_DATA_INT) ||(MODE == LPS25HB_EMPTY) || (MODE ==LPS25HB_WTM)||\
- (MODE == LPS25HB_OVR) || (MODE == LPS25HB_DATA_READY))
- typedef enum
- {
- LPS25HB_PushPull = (uint8_t)0x00,
- LPS25HB_OpenDrain = (uint8_t)0x40
- }LPS25HB_OutputType_et;
- #define IS_LPS25HB_OutputType(MODE) ((MODE == LPS25HB_PushPull) || (MODE == LPS25HB_OpenDrain))
- typedef enum
- {
- LPS25HB_DISABLE_INT = (uint8_t)0x00,
- LPS25HB_PHE = (uint8_t)0x01,
- LPS25HB_PLE = (uint8_t)0x02,
- LPS25HB_PLE_PHE = (uint8_t)0x03
- }LPS25HB_InterruptDiffConfig_et;
- #define IS_LPS25HB_InterruptDiff(MODE) ((MODE == LPS25HB_DISABLE_INT) || (MODE ==LPS25HB_PHE)||\
- (MODE == LPS25HB_PLE) || (MODE == LPS25HB_PLE_PHE))
- typedef struct
- {
- uint8_t PH;
- uint8_t PL;
- uint8_t IA;
- }LPS25HB_InterruptDiffStatus_st;
- typedef struct
- {
- uint8_t TempDataAvailable;
- uint8_t PressDataAvailable;
- uint8_t TempDataOverrun;
- uint8_t PressDataOverrun;
- }LPS25HB_DataStatus_st;
- typedef enum {
- LPS25HB_FIFO_BYPASS_MODE = (uint8_t)0x00,
- LPS25HB_FIFO_MODE = (uint8_t)0x20,
- LPS25HB_FIFO_STREAM_MODE = (uint8_t)0x40,
- LPS25HB_FIFO_TRIGGER_STREAMTOFIFO_MODE = (uint8_t)0x60,
- LPS25HB_FIFO_TRIGGER_BYPASSTOSTREAM_MODE = (uint8_t)0x80,
- LPS25HB_FIFO_MEAN_MODE = (uint8_t)0xC0,
- LPS25HB_FIFO_TRIGGER_BYPASSTOFIFO_MODE = (uint8_t)0xE0
- } LPS25HB_FifoMode_et;
- #define IS_LPS25HB_FifoMode(MODE) ((MODE == LPS25HB_FIFO_BYPASS_MODE) || (MODE ==LPS25HB_FIFO_MODE)||\
- (MODE == LPS25HB_FIFO_STREAM_MODE) || (MODE == LPS25HB_FIFO_TRIGGER_STREAMTOFIFO_MODE)||\
- (MODE == LPS25HB_FIFO_TRIGGER_BYPASSTOSTREAM_MODE) || (MODE == LPS25HB_FIFO_MEAN_MODE)||\
- (MODE == LPS25HB_FIFO_TRIGGER_BYPASSTOFIFO_MODE))
- typedef enum {
- LPS25HB_FIFO_SAMPLE_2 = (uint8_t)0x01,
- LPS25HB_FIFO_SAMPLE_4 = (uint8_t)0x03,
- LPS25HB_FIFO_SAMPLE_8 = (uint8_t)0x07,
- LPS25HB_FIFO_SAMPLE_16 = (uint8_t)0x0F,
- LPS25HB_FIFO_SAMPLE_32 = (uint8_t)0x1F
- } LPS25HB_FifoMeanModeSample_et;
- #define IS_LPS25HB_FifoMeanModeSample(MODE) ((MODE == LPS25HB_FIFO_SAMPLE_2) || (MODE ==LPS25HB_FIFO_SAMPLE_4)||\
- (MODE == LPS25HB_FIFO_SAMPLE_8) || (MODE == LPS25HB_FIFO_SAMPLE_16)||\
- (MODE == LPS25HB_FIFO_SAMPLE_32))
- typedef struct {
- uint8_t FIFO_LEVEL;
- uint8_t FIFO_EMPTY;
- uint8_t FIFO_FULL;
- uint8_t FIFO_WTM;
- }LPS25HB_FifoStatus_st;
- typedef struct
- {
- LPS25HB_Avgp_et PressResolution;
- LPS25HB_Avgt_et TempResolution;
- LPS25HB_Odr_et OutputDataRate;
- LPS25HB_Bdu_et BDU;
- LPS25HB_State_et AutoZero;
- LPS25HB_State_et Reset_AZ;
- LPS25HB_SPIMode_et Sim;
- }LPS25HB_ConfigTypeDef_st;
- typedef struct {
- LPS25HB_State_et INT_H_L;
- LPS25HB_OutputType_et PP_OD;
- LPS25HB_OutputSignalConfig_et OutputSignal_INT1;
- LPS25HB_DataSignalType_et DataInterrupt_INT1;
- LPS25HB_InterruptDiffConfig_et PressureInterrupt;
- LPS25HB_State_et LatchIRQ;
- int16_t fP_threshold;
- }LPS25HB_InterruptTypeDef_st;
- typedef struct {
- LPS25HB_FifoMode_et FIFO_MODE;
- LPS25HB_State_et WTM_INT;
- LPS25HB_State_et FIFO_MEAN_DEC;
- LPS25HB_FifoMeanModeSample_et MEAN_MODE_SAMPLE;
- uint8_t WTM_LEVEL;
- }LPS25HB_FIFOTypeDef_st;
- #define IS_LPS25HB_WtmLevel(LEVEL) ((LEVEL > 0) && (LEVEL <=31))
- typedef struct {
- int16_t Tout;
- int32_t Pout;
- }LPS25HB_MeasureTypeDef_st;
- typedef struct {
- uint8_t Major;
- uint8_t Minor;
- uint8_t Point;
- }LPS25HB_DriverVersion_st;
- #define LPS25HB_BIT(x) ((uint8_t)x)
- #define LPS25HB_ADDRESS (uint8_t)0xB8
- #define LPS25HB_DriverVersion_Major (uint8_t)1
- #define LPS25HB_DriverVersion_Minor (uint8_t)0
- #define LPS25HB_DriverVersion_Point (uint8_t)0
-
-
- #define LPS25HB_WHO_AM_I_REG (uint8_t)0x0F
- #define LPS25HB_WHO_AM_I_VAL (uint8_t)0xBD
- #define LPS25HB_REF_P_XL_REG (uint8_t)0x08
- #define LPS25HB_REF_P_L_REG (uint8_t)0x09
- #define LPS25HB_REF_P_H_REG (uint8_t)0x0A
- #define LPS25HB_RES_CONF_REG (uint8_t)0x10
- #define LPS25HB_AVGT_BIT LPS25HB_BIT(2)
- #define LPS25HB_AVGP_BIT LPS25HB_BIT(0)
- #define LPS25HB_AVGT_MASK (uint8_t)0x0C
- #define LPS25HB_AVGP_MASK (uint8_t)0x03
- #define LPS25HB_CTRL_REG1 (uint8_t)0x20
- #define LPS25HB_PD_BIT LPS25HB_BIT(7)
- #define LPS25HB_ODR_BIT LPS25HB_BIT(4)
- #define LPS25HB_DIFF_EN_BIT LPS25HB_BIT(3)
- #define LPS25HB_BDU_BIT LPS25HB_BIT(2)
- #define LPS25HB_RESET_AZ_BIT LPS25HB_BIT(1)
- #define LPS25HB_SIM_BIT LPS25HB_BIT(0)
- #define LPS25HB_PD_MASK (uint8_t)0x80
- #define LPS25HB_ODR_MASK (uint8_t)0x70
- #define LPS25HB_DIFF_EN_MASK (uint8_t)0x08
- #define LPS25HB_BDU_MASK (uint8_t)0x04
- #define LPS25HB_RESET_AZ_MASK (uint8_t)0x02
- #define LPS25HB_SIM_MASK (uint8_t)0x01
- #define LPS25HB_CTRL_REG2 (uint8_t)0x21
- #define LPS25HB_BOOT_BIT LPS25HB_BIT(7)
- #define LPS25HB_FIFO_EN_BIT LPS25HB_BIT(6)
- #define LPS25HB_WTM_EN_BIT LPS25HB_BIT(5)
- #define LPS25HB_FIFO_MEAN_BIT LPS25HB_BIT(4)
- #define LPS25HB_I2C_BIT LPS25HB_BIT(3)
- #define LPS25HB_SW_RESET_BIT LPS25HB_BIT(2)
- #define LPS25HB_AUTO_ZERO_BIT LPS25HB_BIT(1)
- #define LPS25HB_ONE_SHOT_BIT LPS25HB_BIT(0)
- #define LPS25HB_BOOT_MASK (uint8_t)0x80
- #define LPS25HB_FIFO_EN_MASK (uint8_t)0x40
- #define LPS25HB_WTM_EN_MASK (uint8_t)0x20
- #define LPS25HB_FIFO_MEAN_MASK (uint8_t)0x10
- #define LPS25HB_I2C_MASK (uint8_t)0x08
- #define LPS25HB_SW_RESET_MASK (uint8_t)0x04
- #define LPS25HB_AUTO_ZERO_MASK (uint8_t)0x02
- #define LPS25HB_ONE_SHOT_MASK (uint8_t)0x01
- #define LPS25HB_CTRL_REG3 (uint8_t)0x22
- #define LPS25HB_INT_H_L_BIT LPS25HB_BIT(7)
- #define LPS25HB_PP_OD_BIT LPS25HB_BIT(6)
- #define LPS25HB_INT1_S2_BIT LPS25HB_BIT(1)
- #define LPS25HB_INT1_S1_BIT LPS25HB_BIT(0)
- #define LPS25HB_INT_H_L_MASK (uint8_t)0x80
- #define LPS25HB_PP_OD_MASK (uint8_t)0x40
- #define LPS25HB_INT1_S2_MASK (uint8_t)0x02
- #define LPS25HB_INT1_S1_MASK (uint8_t)0x01
- #define LPS25HB_CTRL_REG4 (uint8_t)0x23
- #define LPS25HB_P1_EMPTY_BIT LPS25HB_BIT(3)
- #define LPS25HB_P1_WTM_BIT LPS25HB_BIT(2)
- #define LPS25HB_P1_OVERRUN_BIT LPS25HB_BIT(1)
- #define LPS25HB_P1_DRDY_BIT LPS25HB_BIT(0)
- #define LPS25HB_P1_EMPTY_MASK (uint8_t)0x08
- #define LPS25HB_P1_WTM_MASK (uint8_t)0x04
- #define LPS25HB_P1_OVERRUN_MASK (uint8_t)0x02
- #define LPS25HB_P1_DRDY_MASK (uint8_t)0x01
-
- #define LPS25HB_INTERRUPT_CFG_REG (uint8_t)0x24
- #define LPS25HB_LIR_BIT LPS25HB_BIT(2)
- #define LPS25HB_PL_E_BIT LPS25HB_BIT(1)
- #define LPS25HB_PH_E_BIT LPS25HB_BIT(0)
- #define LPS25HB_LIR_MASK (uint8_t)0x04
- #define LPS25HB_PL_E_MASK (uint8_t)0x02
- #define LPS25HB_PH_E_MASK (uint8_t)0x01
- #define LPS25HB_PE_MASK (uint8_t)0x03
-
- #define LPS25HB_INTERRUPT_SOURCE_REG (uint8_t)0x25
- #define LPS25HB_IA_BIT LPS25HB_BIT(2)
- #define LPS25HB_PL_BIT LPS25HB_BIT(1)
- #define LPS25HB_PH_BIT LPS25HB_BIT(0)
- #define LPS25HB_IA_MASK (uint8_t)0x04
- #define LPS25HB_PL_MASK (uint8_t)0x02
- #define LPS25HB_PH_MASK (uint8_t)0x01
- #define LPS25HB_STATUS_REG (uint8_t)0x27
- #define LPS25HB_POR_BIT LPS25HB_BIT(5)
- #define LPS25HB_TOR_BIT LPS25HB_BIT(4)
- #define LPS25HB_PDA_BIT LPS25HB_BIT(1)
- #define LPS25HB_TDA_BIT LPS25HB_BIT(0)
- #define LPS25HB_POR_MASK (uint8_t)0x20
- #define LPS25HB_TOR_MASK (uint8_t)0x10
- #define LPS25HB_PDA_MASK (uint8_t)0x02
- #define LPS25HB_TDA_MASK (uint8_t)0x01
- #define LPS25HB_PRESS_OUT_XL_REG (uint8_t)0x28
- #define LPS25HB_PRESS_OUT_L_REG (uint8_t)0x29
- #define LPS25HB_PRESS_OUT_H_REG (uint8_t)0x2A
- #define LPS25HB_TEMP_OUT_L_REG (uint8_t)0x2B
- #define LPS25HB_TEMP_OUT_H_REG (uint8_t)0x2C
- #define LPS25HB_THS_P_LOW_REG (uint8_t)0x30
- #define LPS25HB_THS_P_HIGH_REG (uint8_t)0x31
- #define LPS25HB_CTRL_FIFO_REG (uint8_t)0x2E
- #define LPS25HB_FMODE_BIT LPS25HB_BIT(5)
- #define LPS25HB_WTM_POINT_BIT LPS25HB_BIT(0)
- #define LPS25HB_FMODE_MASK (uint8_t)0xE0
- #define LPS25HB_WTM_POINT_MASK (uint8_t)0x1F
- #define LPS25HB_STATUS_FIFO_REG (uint8_t)0x2F
- #define LPS25HB_WTM_FIFO_BIT LPS25HB_BIT(7)
- #define LPS25HB_FULL_FIFO_BIT LPS25HB_BIT(6)
- #define LPS25HB_EMPTY_FIFO_BIT LPS25HB_BIT(5)
- #define LPS25HB_DIFF_POINT_BIT LPS25HB_BIT(0)
- #define LPS25HB_WTM_FIFO_MASK (uint8_t)0x80
- #define LPS25HB_FULL_FIFO_MASK (uint8_t)0x40
- #define LPS25HB_EMPTY_FIFO_MASK (uint8_t)0x20
- #define LPS25HB_DIFF_POINT_MASK (uint8_t)0x1F
- #define LPS25HB_RPDS_L_REG (uint8_t)0x39
- #define LPS25HB_RPDS_H_REG (uint8_t)0x3A
-
-
-
- #define LPS25HB_HalInit HAL_Init_I2C
- #define LPS25HB_HalDeInit HAL_DeInit_I2C
- #define LPS25HB_ReadReg(RegAddr, NumByteToRead, Data) Sensor_IO_Read(RegAddr, NumByteToRead, Data)
- #define LPS25HB_WriteReg(RegAddr, NumByteToWrite, Data) Sensor_IO_Write(RegAddr, NumByteToWrite, Data)
- LPS25HB_Error_et LPS25HB_Get_DriverVersion(LPS25HB_DriverVersion_st *Version);
- LPS25HB_Error_et LPS25HB_DeInit(void);
- LPS25HB_Error_et LPS25HB_Activate(void);
- LPS25HB_Error_et LPS25HB_DeActivate(void);
- LPS25HB_Error_et LPS25HB_IsMeasurementCompleted(uint8_t *Is_Measurement_Completed);
- LPS25HB_Error_et LPS25HB_Get_Measurement(LPS25HB_MeasureTypeDef_st *Measurement_Value);
- LPS25HB_Error_et LPS25HB_Get_ReferencePressure(int32_t *RefP);
- LPS25HB_Error_et LPS25HB_Set_PowerDownMode(LPS25HB_BitStatus_et powerdown);
- LPS25HB_Error_et LPS25HB_Set_Avg(LPS25HB_Avgp_et avgp,LPS25HB_Avgt_et avgt);
- LPS25HB_Error_et LPS25HB_Set_AvgP(LPS25HB_Avgp_et avgp);
- LPS25HB_Error_et LPS25HB_Set_AvgT(LPS25HB_Avgt_et avgt);
- LPS25HB_Error_et LPS25HB_Get_AvgP(LPS25HB_Avgp_et* avgpress);
- LPS25HB_Error_et LPS25HB_Get_AvgT(LPS25HB_Avgt_et* avgtemp);
- LPS25HB_Error_et LPS25HB_Set_Odr(LPS25HB_Odr_et odr);
- LPS25HB_Error_et LPS25HB_Get_Odr(LPS25HB_Odr_et* odr);
- LPS25HB_Error_et LPS25HB_Set_InterruptCircuitEnable(LPS25HB_State_et diff_en) ;
- LPS25HB_Error_et LPS25HB_Get_InterruptCircuitEnable(LPS25HB_State_et* diff_en);
- LPS25HB_Error_et LPS25HB_Set_BDU(LPS25HB_Bdu_et bdu);
- LPS25HB_Error_et LPS25HB_Get_BDU(LPS25HB_Bdu_et* bdu);
- LPS25HB_Error_et LPS25HB_ResetAZ(void);
- LPS25HB_Error_et LPS25HB_Set_SpiInterface(LPS25HB_SPIMode_et spimode);
- LPS25HB_Error_et LPS25HB_Get_SpiInterface(LPS25HB_SPIMode_et* spimode);
- LPS25HB_Error_et LPS25HB_Set_I2C(LPS25HB_State_et i2cstate);
- LPS25HB_Error_et LPS25HB_StartOneShotMeasurement(void);
- LPS25HB_Error_et LPS25HB_Set_AutoZeroFunction(LPS25HB_BitStatus_et autozero);
- LPS25HB_Error_et LPS25HB_SwReset(void);
- LPS25HB_Error_et LPS25HB_MemoryBoot(void);
- LPS25HB_Error_et LPS25HB_SwResetAndMemoryBoot(void);
- LPS25HB_Error_et LPS25HB_Set_FifoModeUse(LPS25HB_State_et status);
- LPS25HB_Error_et LPS25HB_Set_FifoWatermarkLevelUse(LPS25HB_State_et status);
- LPS25HB_Error_et LPS25HB_Set_FifoMeanDecUse(LPS25HB_State_et status);
- LPS25HB_Error_et LPS25HB_Set_InterruptActiveLevel(LPS25HB_State_et status);
- LPS25HB_Error_et LPS25HB_Set_InterruptOutputType(LPS25HB_OutputType_et output);
- LPS25HB_Error_et LPS25HB_Set_InterruptControlConfig(LPS25HB_OutputSignalConfig_et config);
- LPS25HB_Error_et LPS25HB_Set_InterruptDataConfig(LPS25HB_DataSignalType_et signal);
- LPS25HB_Error_et LPS25HB_Set_InterruptDifferentialConfig(LPS25HB_InterruptDiffConfig_et config);
- LPS25HB_Error_et LPS25HB_LatchInterruptRequest(LPS25HB_State_et status);
- LPS25HB_Error_et LPS25HB_Get_InterruptDifferentialEventStatus(LPS25HB_InterruptDiffStatus_st* interruptsource);
- LPS25HB_Error_et LPS25HB_Get_DataStatus(LPS25HB_DataStatus_st* datastatus);
- LPS25HB_Error_et LPS25HB_Get_RawPressure(int32_t *raw_press);
- LPS25HB_Error_et LPS25HB_Get_Pressure(int32_t* Pout);
- LPS25HB_Error_et LPS25HB_Get_RawTemperature(int16_t *raw_data);
- LPS25HB_Error_et LPS25HB_Get_Temperature(int16_t* Tout);
- LPS25HB_Error_et LPS25HB_Get_PressureThreshold(int16_t *P_ths);
- LPS25HB_Error_et LPS25HB_Set_PressureThreshold(int16_t P_ths);
- LPS25HB_Error_et LPS25HB_Set_FifoMode(LPS25HB_FifoMode_et fifomode);
- LPS25HB_Error_et LPS25HB_Get_FifoMode(LPS25HB_FifoMode_et* fifomode);
- LPS25HB_Error_et LPS25HB_Get_FifoStatus(LPS25HB_FifoStatus_st* status);
- LPS25HB_Error_et LPS25HB_Set_FifoWatermarkLevel(uint8_t wtmlevel);
- LPS25HB_Error_et LPS25HB_Get_FifoWatermarkLevel(uint8_t *wtmlevel);
- LPS25HB_Error_et LPS25HB_Set_FifoSampleSize(LPS25HB_FifoMeanModeSample_et samplesize);
- LPS25HB_Error_et LPS25HB_Get_FifoSampleSize(LPS25HB_FifoMeanModeSample_et* samplesize);
- LPS25HB_Error_et LPS25HB_Get_DeviceID(uint8_t* deviceid);
- LPS25HB_Error_et LPS25HB_Get_PressureOffsetValue(int16_t *pressoffset);
- LPS25HB_Error_et LPS25HB_Set_GenericConfig(LPS25HB_ConfigTypeDef_st* pxLPS25HBInit);
- LPS25HB_Error_et LPS25HB_Get_GenericConfig(LPS25HB_ConfigTypeDef_st* pxLPS25HBInit);
- LPS25HB_Error_et LPS25HB_Set_InterruptConfig(LPS25HB_InterruptTypeDef_st* pLPS25HBInt);
- LPS25HB_Error_et LPS25HB_Get_InterruptConfig(LPS25HB_InterruptTypeDef_st* pLPS25HBInt);
- LPS25HB_Error_et LPS25HB_Set_FifoConfig(LPS25HB_FIFOTypeDef_st* pLPS25HBFIFO);
- LPS25HB_Error_et LPS25HB_Get_FifoConfig(LPS25HB_FIFOTypeDef_st* pLPS25HBFIFO);
- #ifdef __cplusplus
- }
- #endif
- #endif
|