Thanks for the feedback Myzhar!
In case other members find themselves in a similar issue, always look at the comment block directly in the code of the sensor API. It *should* always include a description when specific values are required.
In this case:
/*!
* @brief This API maps/un-maps data interrupts to that of interrupt pins.
*
* @param[in] int_pin : Interrupt pin selected.
* @param[in] data_int : Type of data interrupt to be mapped.
* @param[in] dev : Structure instance of bmi2_dev.
*
* data_int | Mask values
* ---------------------|---------------------
* BMI2_FFULL_INT | 0x01
* BMI2_FWM_INT | 0x02
* BMI2_DRDY_INT | 0x04
* BMI2_ERR_INT | 0x08
*
* @return Result of API execution status
*
* @retval BMI2_OK - Success.
* @retval BMI2_E_NULL_PTR - Error: Null pointer error
* @retval BMI2_E_COM_FAIL - Error: Communication fail
* @retval BMI2_E_INVALID_INT_PIN - Error: Invalid interrupt pin
*/
int8_t bmi2_map_data_int(uint8_t data_int, enum bmi2_hw_int_pin int_pin, struct bmi2_dev *dev);
The BMI2_GYRO definition is actually 0x01, which is FIFO full interrupt in this context.
... View more