The fxps7250.h contains the FXPS7250 pressure sensor register definitions, access macros, and its bit mask.
More...
|
#define | FXPS7250D4_WHOAMI_VALUE (0xC4) |
|
#define | FXPS7250_DEVSTAT_DEVINIT_MASK ((uint8_t) 0x01) |
|
#define | FXPS7250_DEVSTAT_DEVINIT_SHIFT ((uint8_t) 0) |
|
#define | FXPS7250_DEVSTAT_DEVRES_MASK ((uint8_t) 0x02) |
|
#define | FXPS7250_DEVSTAT_DEVRES_SHIFT ((uint8_t) 1) |
|
#define | FXPS7250_DEVSTAT_TESTMODE_MASK ((uint8_t) 0x04) |
|
#define | FXPS7250_DEVSTAT_TESTMODE_SHIFT ((uint8_t) 2) |
|
#define | FXPS7250_DEVSTAT_SUPPLY_ERR_MASK ((uint8_t) 0x08) |
|
#define | FXPS7250_DEVSTAT_SUPPLY_ERR_SHIFT ((uint8_t) 3) |
|
#define | FXPS7250_DEVSTAT_MEMTEMP_ERR_MASK ((uint8_t) 0x10) |
|
#define | FXPS7250_DEVSTAT_MEMTEMP_ERR_SHIFT ((uint8_t) 4) |
|
#define | FXPS7250_DEVSTAT_COMM_ERR_MASK ((uint8_t) 0x20) |
|
#define | FXPS7250_DEVSTAT_COMM_ERR_SHIFT ((uint8_t) 5) |
|
#define | FXPS7250_DEVSTAT_DSP_ERR_MASK ((uint8_t) 0x80) |
|
#define | FXPS7250_DEVSTAT_DSP_ERR_SHIFT ((uint8_t) 7) |
|
#define | FXPS7250_DEVSTAT_DEVINIT_INIT ((uint8_t) 0x01) /* Indicates if the device is initializing. */ |
|
#define | FXPS7250_DEVSTAT_DEVINIT_NORMAL ((uint8_t) 0x00) /* Device is operating normally. */ |
|
#define | FXPS7250_DEVSTAT_DEVRES_RESET ((uint8_t) 0x02) /* Indicates if the device has reset. */ |
|
#define | FXPS7250_DEVSTAT_DEVRES_NOT_RESET ((uint8_t) 0x00) /* Device is operating normally. */ |
|
#define | FXPS7250_DEVSTAT_TESTMODE_ISACTIVE ((uint8_t) 0x04) /* Indicates if the device is in test mode. */ |
|
#define | FXPS7250_DEVSTAT_TESTMODE_INACTIVE ((uint8_t) 0x00) /* Test mode is not active. */ |
|
#define | FXPS7250_DEVSTAT_SUPPLY_ERR ((uint8_t) 0x08) /* Indicates if an error is flagged in DEVSTAT1. */ |
|
#define | FXPS7250_DEVSTAT_NOT_SUPPLY_ERR ((uint8_t) 0x00) /* No error is flagged in DEVSTAT1. */ |
|
#define | FXPS7250_DEVSTAT_MEMTEMP_ERR ((uint8_t) 0x10) /* Indicates if an error is flagged in DEVSTAT2. */ |
|
#define | FXPS7250_DEVSTAT_NOT_MEMTEMP_ERR ((uint8_t) 0x00) /* No error is flagged in DEVSTAT2. */ |
|
#define | FXPS7250_DEVSTAT_COMM_ERR ((uint8_t) 0x20) /* Indicates if an error is flagged in DEVSTAT3. */ |
|
#define | FXPS7250_DEVSTAT_NOT_COMM_ERR ((uint8_t) 0x00) /* No error is flagged in DEVSTAT3. */ |
|
#define | FXPS7250_DEVSTAT_DSP_ERR ((uint8_t) 0x80) /* Indicates if an error is flagged in the pressure DSP. */ |
|
#define | FXPS7250_DEVSTAT_NOT_DSP_ERR ((uint8_t) 0x00) /* No error is flagged in the pressure DSP. */ |
|
#define | FXPS7250_DEVSTAT1_CONT_ERR_MASK ((uint8_t) 0x01) |
|
#define | FXPS7250_DEVSTAT1_CONT_ERR_SHIFT ((uint8_t) 0) |
|
#define | FXPS7250_DEVSTAT1_INTREGF_ERR_MASK ((uint8_t) 0x02) |
|
#define | FXPS7250_DEVSTAT1_INTREGF_ERR_SHIFT ((uint8_t) 1) |
|
#define | FXPS7250_DEVSTAT1_INTREG_ERR_MASK ((uint8_t) 0x04) |
|
#define | FXPS7250_DEVSTAT1_INTREG_ERR_SHIFT ((uint8_t) 2) |
|
#define | FXPS7250_DEVSTAT1_INTREGA_ERR_MASK ((uint8_t) 0x08) |
|
#define | FXPS7250_DEVSTAT1_INTREGA_ERR_SHIFT ((uint8_t) 3) |
|
#define | FXPS7250_DEVSTAT1_VCCOV_ERR_MASK ((uint8_t) 0x20) |
|
#define | FXPS7250_DEVSTAT1_VCCOV_ERR_SHIFT ((uint8_t) 5) |
|
#define | FXPS7250_DEVSTAT1_VCCUV_ERR_MASK ((uint8_t) 0x80) |
|
#define | FXPS7250_DEVSTAT1_VCCUV_ERR_SHIFT ((uint8_t) 7) |
|
#define | FXPS7250_DEVSTAT1_CONT_ERR ((uint8_t) 0x01) /* Indicates if an error is flagged by the continuity monitor. */ |
|
#define | FXPS7250_DEVSTAT1_NO_CONT_ERR ((uint8_t) 0x00) /* No error is flagged by the continuity monitor. */ |
|
#define | FXPS7250_DEVSTAT1_INTREGF_ERR ((uint8_t) 0x02) /* Indicates if the OTP regulator voltage is out of range. */ |
|
#define | FXPS7250_DEVSTAT1_NO_INTREGF_ERR ((uint8_t) 0x00) /* The OTP regulator voltage is in range. */ |
|
#define | FXPS7250_DEVSTAT1_INTREG_ERR ((uint8_t) 0x04) /* Indicates if the digital regulator voltage is out of range. */ |
|
#define | FXPS7250_DEVSTAT1_NO_INTREG_ERR ((uint8_t) 0x00) /* The digital regulator voltage is in range. */ |
|
#define | FXPS7250_DEVSTAT1_INTREGA_ERR ((uint8_t) 0x08) /* Indicates if the analog regulator voltage is out of range. */ |
|
#define | FXPS7250_DEVSTAT1_NO_INTREGA_ERR ((uint8_t) 0x00) /* The analog regulator voltage is out of range. */ |
|
#define | FXPS7250_DEVSTAT1_VCCOV_ERR ((uint8_t) 0x20) /* Indicates if the Vcc voltage goes above the recommended maximum level. */ |
|
#define | FXPS7250_DEVSTAT1_NO_VCCOV_ERR ((uint8_t) 0x00) /* The Vcc voltage is below the recommended maximum level. */ |
|
#define | FXPS7250_DEVSTAT1_VCCUV_ERR ((uint8_t) 0x80) /* Indicates if the Vcc voltage goes below the recommended minimum level. */ |
|
#define | FXPS7250_DEVSTAT1_NO_VCCUV_ERR ((uint8_t) 0x00) /* The Vcc voltage is above the recommended minimum level. */ |
|
#define | FXPS7250_DEVSTAT2_TEMP0_ERR_MASK ((uint8_t) 0x04) |
|
#define | FXPS7250_DEVSTAT2_TEMP0_ERR_SHIFT ((uint8_t) 2) |
|
#define | FXPS7250_DEVSTAT2_U_W_ACTIVE_MASK ((uint8_t) 0x10) |
|
#define | FXPS7250_DEVSTAT2_U_W_ACTIVE_SHIFT ((uint8_t) 4) |
|
#define | FXPS7250_DEVSTAT2_U_RW_ERR_MASK ((uint8_t) 0x20) |
|
#define | FXPS7250_DEVSTAT2_U_RW_ERR_SHIFT ((uint8_t) 5) |
|
#define | FXPS7250_DEVSTAT2_U_OTP_ERR_MASK ((uint8_t) 0x40) |
|
#define | FXPS7250_DEVSTAT2_U_OTP_ERR_SHIFT ((uint8_t) 6) |
|
#define | FXPS7250_DEVSTAT2_F_OTP_ERR_MASK ((uint8_t) 0x80) |
|
#define | FXPS7250_DEVSTAT2_F_OTP_ERR_SHIFT ((uint8_t) 7) |
|
#define | FXPS7250_DEVSTAT2_TEMP0_ERR ((uint8_t) 0x02) /* Indicates if temperature is outside of the recommended range. */ |
|
#define | FXPS7250_DEVSTAT2_TEMP0_OK ((uint8_t) 0x00) /* Indicates if temperature is inside of the recommended range. */ |
|
#define | FXPS7250_DEVSTAT2_U_W_ACTIVE ((uint8_t) 0x10) /* Indicates if a user initiated OTP write is in progress. */ |
|
#define | FXPS7250_DEVSTAT2_U_W_INACTIVE ((uint8_t) 0x00) /* Indicates if a user initiated OTP write is in progress. */ |
|
#define | FXPS7250_DEVSTAT2_U_RW_ERR ((uint8_t) 0x20) /* Indicates if there is an error present in any user writable */ |
|
#define | FXPS7250_DEVSTAT2_NO_U_RW_ERR ((uint8_t) 0x00) /* Indicates if there are no errors present in any user writable */ |
|
#define | FXPS7250_DEVSTAT2_U_OTP_ERR ((uint8_t) 0x40) /* Indicates if a fault is detected in the user OTP array. */ |
|
#define | FXPS7250_DEVSTAT2_NO_U_OTP_ERR ((uint8_t) 0x00) /* Indicates if no faults are detected in the user OTP array. */ |
|
#define | FXPS7250_DEVSTAT2_F_OTP_ERR ((uint8_t) 0x80) /* Indicates if a fault is detected in the factory OTP array. */ |
|
#define | FXPS7250_DEVSTAT2_NO_F_OTP_ERR ((uint8_t) 0x00) /* Indicates if no faults are detected in the factory OTP array. */ |
|
#define | FXPS7250_DEVSTAT3_OSCTRAIN_ERR_MASK ((uint8_t) 0x40) |
|
#define | FXPS7250_DEVSTAT3_OSCTRAIN_ERR_SHIFT ((uint8_t) 6) |
|
#define | FXPS7250_DEVSTAT3_MISO_ERR_MASK ((uint8_t) 0x80) |
|
#define | FXPS7250_DEVSTAT3_MISO_ERR_SHIFT ((uint8_t) 7) |
|
#define | FXPS7250_DEVSTAT3_OSCTRAIN_ERR ((uint8_t) 0x40) /* Indicates if an error is detected in the oscillator settings */ |
|
#define | FXPS7250_DEVSTAT3_NO_OSCTRAIN_ERR ((uint8_t) 0x00) /* Indicates if no error is detected in the oscillator settings */ |
|
#define | FXPS7250_DEVSTAT3_MISO_ERR ((uint8_t) 0x80) /* Indicates if a data mismatch has occurred in the MISO data set. */ |
|
#define | FXPS7250_DEVSTAT3_NO_MISO_ERR ((uint8_t) 0x00) /* Indicates if no data mismatch has occurred in the MISO data set. */ |
|
#define | FXPS7250_DEVLOCK_WR_RESET_MASK ((uint8_t) 0x01) |
|
#define | FXPS7250_DEVLOCK_WR_RESET_SHIFT ((uint8_t) 0) |
|
#define | FXPS7250_DEVLOCK_WR_SUP_ERR_MASK ((uint8_t) 0x08) |
|
#define | FXPS7250_DEVLOCK_WR_SUP_ERR_SHIFT ((uint8_t) 3) |
|
#define | FXPS7250_DEVLOCK_WR_ENDINIT_MASK ((uint8_t) 0x80) |
|
#define | FXPS7250_DEVLOCK_WR_ENDINIT_SHIFT ((uint8_t) 7) |
|
#define | FXPS7250_DEVLOCK_WR_RESET00 ((uint8_t) 0x00) /* First element in the reset sequence. */ |
|
#define | FXPS7250_DEVLOCK_WR_RESET01 ((uint8_t) 0x01) /* Final element in the reset sequence. */ |
|
#define | FXPS7250_DEVLOCK_WR_RESET10 ((uint8_t) 0x02) /* No Effect. */ |
|
#define | FXPS7250_DEVLOCK_WR_RESET11 ((uint8_t) 0x03) /* Second element in the reset sequence. */ |
|
#define | FXPS7250_DEVLOCK_WR_SUP_BLOCKED ((uint8_t) 0x08) /* Indicates if supply error reporting is blocked by the user. */ |
|
#define | FXPS7250_DEVLOCK_WR_SUP_ALLOWED ((uint8_t) 0x00) /* Indicates if supply error reporting is allowed by the user. */ |
|
#define | FXPS7250_DEVLOCK_WR_ENDINIT_FINISHED ((uint8_t) 0x80) /* Indicates if the device has finished initializing. */ |
|
#define | FXPS7250_DEVLOCK_WR_ENDINIT_RUNNING ((uint8_t) 0x00) /* Indicates if the device is still initializing. */ |
|
#define | FXPS7250_UF_REGION_W_REGION_LOAD_MASK ((uint8_t) 0xA0) |
|
#define | FXPS7250_UF_REGION_W_REGION_LOAD_SHIFT ((uint8_t) 4) |
|
#define | FXPS7250_UF_REGION_W_REGION_LOAD_A0_AF ((uint8_t) 0xA0) /* Loads addresses A0 through AF */ |
|
#define | FXPS7250_UF_REGION_W_REGION_LOAD_B0_BF ((uint8_t) 0xB0) /* Loads addresses B0 through BF */ |
|
#define | FXPS7250_UF_REGION_W_REGION_LOAD_C0_CF ((uint8_t) 0xC0) /* Loads addresses C0 through CF */ |
|
#define | FXPS7250_UF_REGION_W_REGION_LOAD_D0_DF ((uint8_t) 0xD0) /* Loads addresses D0 through DF */ |
|
#define | FXPS7250_UF_REGION_W_REGION_LOAD_E0_EF ((uint8_t) 0xE0) /* Loads addresses E0 through EF */ |
|
#define | FXPS7250_UF_REGION_W_REGION_LOAD_F0_FF ((uint8_t) 0xF0) /* Loads addresses F0 through FF */ |
|
#define | FXPS7250_UF_REGION_R_REGION_ACTIVE_MASK ((uint8_t) 0xA0) |
|
#define | FXPS7250_UF_REGION_R_REGION_ACTIVE_SHIFT ((uint8_t) 4) |
|
#define | FXPS7250_UF_REGION_W_REGION_ACTIVE_00 ((uint8_t) 0x00) /* Load of addresses is in progress. */ |
|
#define | FXPS7250_UF_REGION_W_REGION_ACTIVE_A0_AF ((uint8_t) 0xA0) /* Reads addresses A0 through AF. Must be loaded first. */ |
|
#define | FXPS7250_UF_REGION_W_REGION_ACTIVE_B0_BF ((uint8_t) 0xB0) /* Reads addresses B0 through BF. Must be loaded first. */ |
|
#define | FXPS7250_UF_REGION_W_REGION_ACTIVE_C0_CF ((uint8_t) 0xC0) /* Reads addresses C0 through CF. Must be loaded first. */ |
|
#define | FXPS7250_UF_REGION_W_REGION_ACTIVE_D0_DF ((uint8_t) 0xD0) /* Reads addresses D0 through DF. Must be loaded first. */ |
|
#define | FXPS7250_UF_REGION_W_REGION_ACTIVE_E0_EF ((uint8_t) 0xE0) /* Reads addresses E0 through EF. Must be loaded first. */ |
|
#define | FXPS7250_UF_REGION_W_REGION_ACTIVE_F0_FF ((uint8_t) 0xF0) /* Reads addresses F0 through FF. Must be loaded first. */ |
|
#define | FXPS7250_COMMTYPE_COMMTYPE_MASK ((uint8_t) 0x00) |
|
#define | FXPS7250_COMMTYPE_COMMTYPE_SHIFT ((uint8_t) 0) |
|
#define | FXPS7250_COMMTYPE_32BIT_SPI_NO_SELFTEST_DEBUG0 ((uint8_t) 0x00) /* 32-bit SPI communication protocol with no internal test, in debug mode */ |
|
#define | FXPS7250_COMMTYPE_32BIT_SPI_SELFTEST ((uint8_t) 0x01) /* 32-bit SPI communication protocol with internal test on startup */ |
|
#define | FXPS7250_COMMTYPE_32BIT_SPI_NO_SELFTEST_DEBUG1 ((uint8_t) 0x02) /* 32-bit SPI communication protocol with no internal test, in debug mode */ |
|
#define | FXPS7250_COMMTYPE_32BIT_SPI_NO_SELFTEST_DEBUG2 ((uint8_t) 0x04) /* 32-bit SPI communication protocol with no internal test, in debug mode */ |
|
#define | FXPS7250_COMMTYPE_I2C_PIN3_INT0 ((uint8_t) 0x06) /* I2C communication protocol, with PIN 3 working as an interrupt */ |
|
#define | FXPS7250_COMMTYPE_I2C_PIN3_INT1 ((uint8_t) 0x07) /* I2C communication protocol, with PIN 3 working as an interrupt */ |
|
#define | FXPS7250_SOURCEID_0_SOURCEID_0_MASK ((uint8_t) 0x01) |
|
#define | FXPS7250_SOURCEID_0_SOURCEID_0_SHIFT ((uint8_t) 0) |
|
#define | FXPS7250_SOURCEID_0_SID0_EN_MASK ((uint8_t) 0x80) |
|
#define | FXPS7250_SOURCEID_0_SID0_EN_SHIFT ((uint8_t) 7) |
|
#define | FXPS7250_SOURCEID_0_SOURCEID_0 ((uint8_t) 0x01) /* The stream of data to be sent if sid0_en is true */ |
|
#define | FXPS7250_SOURCEID_0_SID0_EN ((uint8_t) 0x80) /* Enables reading of data or an error response for those source-id bits */ |
|
#define | FXPS7250_SOURCEID_1_SOURCEID_1_MASK ((uint8_t) 0x01) |
|
#define | FXPS7250_SOURCEID_1_SOURCEID_1_SHIFT ((uint8_t) 0) |
|
#define | FXPS7250_SOURCEID_1_SID1_EN_MASK ((uint8_t) 0x80) |
|
#define | FXPS7250_SOURCEID_1_SID1_EN_SHIFT ((uint8_t) 7) |
|
#define | FXPS7250_SOURCEID_1_SOURCEID_10 ((uint8_t) 0x01) /* Stream of data that is sent if sid1_en is true */ |
|
#define | FXPS7250_SOURCEID_1_SID1_EN ((uint8_t) 0x80) /* Enables reading of data or an error response for those source-id bits */ |
|
#define | FXPS7250_TIMING_CFG_CK_CAL_EN_MASK ((uint8_t) 0x01) |
|
#define | FXPS7250_TIMING_CFG_CK_CAL_EN_SHIFT ((uint8_t) 0) |
|
#define | FXPS7250_TIMING_CFG_CK_CAL_RST_MASK ((uint8_t) 0x08) |
|
#define | FXPS7250_TIMING_CFG_CK_CAL_RST_SHIFT ((uint8_t) 3) |
|
#define | FXPS7250_TIMING_CFG_OSCTRAIN_SEL_MASK ((uint8_t) 0x10) |
|
#define | FXPS7250_TIMING_CFG_OSCTRAIN_SEL_SHIFT ((uint8_t) 4) |
|
#define | FXPS7250_TIMING_CFG_CK_CAL_EN ((uint8_t) 0x01) /* Enables clock oscillator training over SPI or I2C */ |
|
#define | FXPS7250_TIMING_CFG_CK_CAL_EN_DIS ((uint8_t) 0x00) /* Clock oscillator training is disabled */ |
|
#define | FXPS7250_TIMING_CFG_CK_CAL_RST ((uint8_t) 0x08) /* Resets the oscillator training to default */ |
|
#define | FXPS7250_TIMING_CFG_CK_CAL_KEEP ((uint8_t) 0x00) /* Training value is maintained at last trained value */ |
|
#define | FXPS7250_TIMING_CFG_OSCTRAIN_SEL ((uint8_t) 0x10) /* Sets the protocol to SPI if FXPS7250_COMMTYPE_COMMTYPE=0x00 or */ |
|
#define | FXPS7250_TIMING_CFG_OSCTRAIN_DISABLE ((uint8_t) 0x00) /* Disables oscillator training. */ |
|
#define | FXPS7250_SPI_CFG_SPICRCSEED_MASK ((uint8_t) 0x01) |
|
#define | FXPS7250_SPI_CFG_SPICRCSEED_SHIFT ((uint8_t) 0) |
|
#define | FXPS7250_SPI_CFG_SPI_CRC_LEN_MASK ((uint8_t) 0x10) |
|
#define | FXPS7250_SPI_CFG_SPI_CRC_LEN_SHIFT ((uint8_t) 4) |
|
#define | FXPS7250_SPI_CFG_DATASIZE_MASK ((uint8_t) 0x40) |
|
#define | FXPS7250_SPI_CFG_DATASIZE_SHIFT ((uint8_t) 6) |
|
#define | FXPS7250_SPI_CFG_SPICRCSEED ((uint8_t) 0x01) /* CRCSeed is non-zero. For use with CRC_LEN. */ |
|
#define | FXPS7250_SPI_CFG_SPICRCSEED_ZERO ((uint8_t) 0x00) /* CRCSeed is zero. For use with CRC_LEN. */ |
|
#define | FXPS7250_SPI_CFG_SPI_CRC_LEN_00 ((uint8_t) 0x00) /* Sets the length of the CRC Seed to 8, 4, or 3 bits */ |
|
#define | FXPS7250_SPI_CFG_SPI_CRC_LEN_01 ((uint8_t) 0x10) /* Sets the length of the CRC Seed to 8, 4, or 3 bits */ |
|
#define | FXPS7250_SPI_CFG_SPI_CRC_LEN_10 ((uint8_t) 0x20) /* Sets the length of the CRC Seed to 8, 4, or 3 bits */ |
|
#define | FXPS7250_SPI_CFG_SPI_CRC_LEN_11 ((uint8_t) 0x30) /* Sets the length of the CRC Seed to 8, 4, or 3 bits */ |
|
#define | FXPS7250_SPI_CFG_DATASIZE_16 ((uint8_t) 0x40) /* Sets SPI datafield size to 16 bits. */ |
|
#define | FXPS7250_SPI_CFG_DATASIZE_12 ((uint8_t) 0x00) /* Sets SPI datafield size to 12 bits. */ |
|
#define | FXPS7250_WHO_AM_I_MASK ((uint8_t) 0x01) |
|
#define | FXPS7250_WHO_AM_I_SHIFT ((uint8_t) 0) |
|
#define | FXPS7250_WHO_AM_I_1 ((uint8_t) 0x01) /* Non-zero value in the register returns the value in the register. */ |
|
#define | FXPS7250_WHO_AM_I_DEFAULT ((uint8_t) 0x00) /* A zero value WHO_AM_I register returns the default value: C4h. */ |
|
#define | FXPS7250_DSP_CFG_U1_USER_RANGE_MASK ((uint8_t) 0x00) |
|
#define | FXPS7250_DSP_CFG_U1_USER_RANGE_SHIFT ((uint8_t) 0) |
|
#define | FXPS7250_DSP_CFG_U1_LPF_MASK ((uint8_t) 0x10) |
|
#define | FXPS7250_DSP_CFG_U1_LPF_SHIFT ((uint8_t) 5) |
|
#define | FXPS7250_DSP_CFG_U1_LPF_370HZ_2POLE ((uint8_t) 0x00) /* Default Low Pass Filter at 370hz and 2-pole. */ |
|
#define | FXPS7250_DSP_CFG_U1_LPF_400HZ_3POLE ((uint8_t) 0x10) /* Alternate Low Pass Filter at 400hz and 3-pole. */ |
|
#define | FXPS7250_DSP_CFG_U1_LPF_800HZ_4POLE ((uint8_t) 0x20) /* Alternate Low Pass Filter at 800hz and 4-pole. */ |
|
#define | FXPS7250_DSP_CFG_U1_LPF_1000HZ_4POLE ((uint8_t) 0x40) /* Alternate Low Pass Filter at 1000hz and 4-pole. */ |
|
#define | FXPS7250_DSP_CFG_U4_INT_OUT_MASK ((uint8_t) 0x04) |
|
#define | FXPS7250_DSP_CFG_U4_INT_OUT_SHIFT ((uint8_t) 2) |
|
#define | FXPS7250_DSP_CFG_U4_INT_OUT_ACTIVE_HIGH_PULL_DOWN ((uint8_t) 0x00) /* Open Drain, Active High with Pull-down Current. */ |
|
#define | FXPS7250_DSP_CFG_U4_INT_OUT_ACTIVE_LOW_PULL_UP ((uint8_t) 0x04) /* Open Drain, Active Low with Pull-up Current. */ |
|
#define | FXPS7250_DSP_CFG_U5_ST_CTRL_MASK ((uint8_t) 0x10) |
|
#define | FXPS7250_DSP_CFG_U5_ST_CTRL_SHIFT ((uint8_t) 4) |
|
#define | FXPS7250_DSP_CFG_U5_STL_CTRL_NORMAL_SIGNAL ((uint8_t) 0x00) /* SNS_DATAx_X Contains: 16-bit Absolute Pressure. */ |
|
#define | FXPS7250_DSP_CFG_U5_STL_CTRL_P_CELL_MODE_VERIFICATION ((uint8_t) 0x10) /* SNS_DATAx_X Contains: 16-bit Absolute Pressure. */ |
|
#define | FXPS7250_DSP_CFG_U5_STL_CTRL_INHIBIT_SNS_DATA_X_WRITE0 ((uint8_t) 0x40) /* SNS_DATAx_X Contains: 0x0000. */ |
|
#define | FXPS7250_DSP_CFG_U5_STL_CTRL_INHIBIT_SNS_DATA_X_WRITE1 ((uint8_t) 0x50) /* SNS_DATAx_X Contains: 0xAAAA. */ |
|
#define | FXPS7250_DSP_CFG_U5_STL_CTRL_INHIBIT_SNS_DATA_X_WRITE2 ((uint8_t) 0x60) /* SNS_DATAx_X Contains: 0x5555. */ |
|
#define | FXPS7250_DSP_CFG_U5_STL_CTRL_INHIBIT_SNS_DATA_X_WRITE3 ((uint8_t) 0x70) /* SNS_DATAx_X Contains: 0xFFFF. */ |
|
#define | FXPS7250_DSP_CFG_U5_STL_CTRL_DIGITAL_SELF_TEST0 ((uint8_t) 0xC0) /* SNS_DATAx_X Contains: Digital Self Test Output. */ |
|
#define | FXPS7250_DSP_CFG_U5_STL_CTRL_DIGITAL_SELF_TEST1 ((uint8_t) 0xD0) /* SNS_DATAx_X Contains: Digital Self Test Output. */ |
|
#define | FXPS7250_DSP_CFG_U5_STL_CTRL_DIGITAL_SELF_TEST2 ((uint8_t) 0xE0) /* SNS_DATAx_X Contains: Digital Self Test Output. */ |
|
#define | FXPS7250_DSP_CFG_U5_STL_CTRL_DIGITAL_SELF_TEST3 ((uint8_t) 0xF0) /* SNS_DATAx_X Contains: Digital Self Test Output. */ |
|
#define | FXPS7250_INT_CFG_INT_POLARITY_MASK ((uint8_t) 0x08) |
|
#define | FXPS7250_INT_CFG_INT_POLARITY_SHIFT ((uint8_t) 3) |
|
#define | FXPS7250_INT_CFG_INT_PS_MASK ((uint8_t) 0x10) |
|
#define | FXPS7250_INT_CFG_INT_PS_SHIFT ((uint8_t) 4) |
|
#define | FXPS7250_INT_CFG_INT_POLARITY_OUTSIDE_RANGE ((uint8_t) 0x00) /* Interrupt activates if values are outside of the range. */ |
|
#define | FXPS7250_INT_CFG_INT_POLARITY_INSIDE_RANGE ((uint8_t) 0x08) /* Interrupt activates if values are inside of the range. */ |
|
#define | FXPS7250_INT_CFG_INT_PS_00 ((uint8_t) 0x00) /* Pulse Stretch of 0ms. */ |
|
#define | FXPS7250_INT_CFG_INT_PS_01 ((uint8_t) 0x10) /* Pulse Stretch of 16,000ms - 16,512ms. */ |
|
#define | FXPS7250_INT_CFG_INT_PS_10 ((uint8_t) 0x20) /* Pulse Stretch of 64,000ms - 60,512ms. */ |
|
#define | FXPS7250_INT_CFG_INT_PS_11 ((uint8_t) 0x30) /* Pulse Stretch of 256,000ms - 256,512ms. */ |
|
#define | FXPS7250_DSP_STAT_ST_ERROR_MASK ((uint8_t) 0x01) |
|
#define | FXPS7250_DSP_STAT_ST_ERROR_SHIFT ((uint8_t) 0) |
|
#define | FXPS7250_DSP_STAT_CM_ERROR_MASK ((uint8_t) 0x02) |
|
#define | FXPS7250_DSP_STAT_CM_ERROR_SHIFT ((uint8_t) 1) |
|
#define | FXPS7250_DSP_STAT_ST_ACTIVE_MASK ((uint8_t) 0x04) |
|
#define | FXPS7250_DSP_STAT_ST_ACTIVE_SHIFT ((uint8_t) 2) |
|
#define | FXPS7250_DSP_STAT_ST_INCMPLT_MASK ((uint8_t) 0x08) |
|
#define | FXPS7250_DSP_STAT_ST_INCMPLT_SHIFT ((uint8_t) 3) |
|
#define | FXPS7250_DSP_STAT_PABS_LOW_MASK ((uint8_t) 0x20) |
|
#define | FXPS7250_DSP_STAT_PABS_LOW_SHIFT ((uint8_t) 5) |
|
#define | FXPS7250_DSP_STAT_PABS_HIGH_MASK ((uint8_t) 0x40) |
|
#define | FXPS7250_DSP_STAT_PABS_HIGH_SHIFT ((uint8_t) 6) |
|
#define | FXPS7250_DSP_STAT_ST_ERROR_CLR ((uint8_t) 0x00) /* No Self-Test Error has been flagged. */ |
|
#define | FXPS7250_DSP_STAT_ST_ERROR_FLAGGED ((uint8_t) 0x01) /* A Self-Test Error has been flagged. */ |
|
#define | FXPS7250_DSP_STAT_CM_ERROR_CLR ((uint8_t) 0x00) /* No Common Mode Error has been flagged. */ |
|
#define | FXPS7250_DSP_STAT_CM_ERROR_FLAGGED ((uint8_t) 0x02) /* A Common Mode Error has been flagged. */ |
|
#define | FXPS7250_DSP_STAT_ST_ACTIVE_INACTIVE ((uint8_t) 0x00) /* No Self-Test Mode is currently active. */ |
|
#define | FXPS7250_DSP_STAT_ST_ACTIVE_ACTIVE ((uint8_t) 0x04) /* A Self-Test Mode is currently active. */ |
|
#define | FXPS7250_DSP_STAT_ST_INCMPLT_FALSE ((uint8_t) 0x00) /* An analog or digital Self-Test has been run since the last reset. */ |
|
#define | FXPS7250_DSP_STAT_ST_INCMPLT_TRUE ((uint8_t) 0x08) /* An analog or digital Self-Test has not been run since the last reset. */ |
|
#define | FXPS7250_DSP_STAT_PABS_LOW_IN_RANGE ((uint8_t) 0x00) /* Absolute Pressure is below the out-of-range lower limit */ |
|
#define | FXPS7250_DSP_STAT_PABS_LOW_NOT_IN_RANGE ((uint8_t) 0x20) /* Absolute Pressure is above the out-of-range lower limit */ |
|
#define | FXPS7250_DSP_STAT_PABS_HIGH_IN_RANGE ((uint8_t) 0x00) /* Absolute Pressure is below the out-of-range higher limit */ |
|
#define | FXPS7250_DSP_STAT_PABS_HIGH_NOT_IN_RANGE ((uint8_t) 0x40) /* Absolute Pressure is above the out-of-range higher limit */ |
|
#define | FXPS7250_DEVSTAT_DEVINIT_MASK ((uint8_t) 0x01) |
|
#define | FXPS7250_DEVSTAT_DEVINIT_SHIFT ((uint8_t) 0) |
|
#define | FXPS7250_DEVSTAT_DEVRES_MASK ((uint8_t) 0x02) |
|
#define | FXPS7250_DEVSTAT_DEVRES_SHIFT ((uint8_t) 1) |
|
#define | FXPS7250_DEVSTAT_TESTMODE_MASK ((uint8_t) 0x04) |
|
#define | FXPS7250_DEVSTAT_TESTMODE_SHIFT ((uint8_t) 2) |
|
#define | FXPS7250_DEVSTAT_SUPPLY_ERR_MASK ((uint8_t) 0x08) |
|
#define | FXPS7250_DEVSTAT_SUPPLY_ERR_SHIFT ((uint8_t) 3) |
|
#define | FXPS7250_DEVSTAT_MEMTEMP_ERR_MASK ((uint8_t) 0x10) |
|
#define | FXPS7250_DEVSTAT_MEMTEMP_ERR_SHIFT ((uint8_t) 4) |
|
#define | FXPS7250_DEVSTAT_COMM_ERR_MASK ((uint8_t) 0x20) |
|
#define | FXPS7250_DEVSTAT_COMM_ERR_SHIFT ((uint8_t) 5) |
|
#define | FXPS7250_DEVSTAT_DSP_ERR_MASK ((uint8_t) 0x80) |
|
#define | FXPS7250_DEVSTAT_DSP_ERR_SHIFT ((uint8_t) 7) |
|
#define | FXPS7250_DEVSTAT_DEVINIT_INIT ((uint8_t) 0x01) /* Indicates if the device is initializing. */ |
|
#define | FXPS7250_DEVSTAT_DEVINIT_NOT_INIT ((uint8_t) 0x00) /* Device is operating normally. */ |
|
#define | FXPS7250_DEVSTAT_DEVRES_RESET ((uint8_t) 0x02) /* Indicates if the device has reset. */ |
|
#define | FXPS7250_DEVSTAT_DEVRES_NOT_RESET ((uint8_t) 0x00) /* Device is operating normally. */ |
|
#define | FXPS7250_DEVSTAT_TESTMODE_ISACTIVE ((uint8_t) 0x04) /* Indicates if the device is in test mode. */ |
|
#define | FXPS7250_DEVSTAT_TESTMODE_INACTIVE ((uint8_t) 0x00) /* Test mode is not active. */ |
|
#define | FXPS7250_DEVSTAT_SUPPLY_ERR ((uint8_t) 0x08) /* Indicates if an error is flagged in DEVSTAT1. */ |
|
#define | FXPS7250_DEVSTAT_NOT_SUPPLY_ERR ((uint8_t) 0x00) /* No error is flagged in DEVSTAT1. */ |
|
#define | FXPS7250_DEVSTAT_MEMTEMP_ERR ((uint8_t) 0x10) /* Indicates if an error is flagged in DEVSTAT2. */ |
|
#define | FXPS7250_DEVSTAT_NOT_MEMTEMP_ERR ((uint8_t) 0x00) /* No error is flagged in DEVSTAT2. */ |
|
#define | FXPS7250_DEVSTAT_COMM_ERR ((uint8_t) 0x20) /* Indicates if an error is flagged in DEVSTAT3. */ |
|
#define | FXPS7250_DEVSTAT_NOT_COMM_ERR ((uint8_t) 0x00) /* No error is flagged in DEVSTAT3. */ |
|
#define | FXPS7250_DEVSTAT_DSP_ERR ((uint8_t) 0x80) /* Indicates if an error is flagged in the pressure DSP. */ |
|
#define | FXPS7250_DEVSTAT_NOT_DSP_ERR ((uint8_t) 0x00) /* No error is flagged in the pressure DSP. */ |
|