/* This API checks whether the Mag access is done manually or automatically in the sensor. If the Mag access is done through manual mode then Mag data registers in sensor are not updated automatically.  */
uint16_t bma4_get_mag_manual_enable(uint8_t *mag_manual, struct bma4_dev *dev)
/* This API checks whether the Mag access is done manually or automatically in the sensor. If the Mag access is done through manual mode then Mag data registers in sensor are not updated automatically.  */
uint16_t bma4_get_mag_manual_enable(uint8_t *mag_manual, struct bma4_dev *dev)
{
    uint16_t rslt = 0;
    uint8_t data = 0;
    if (dev == NULL) {
        rslt |= BMA4_E_NULL_PTR;
    } else {
        rslt |= bma4_read_regs(BMA4_AUX_IF_CONF_ADDR, &data, 1, dev);
        if (rslt == BMA4_OK)
            *mag_manual = BMA4_GET_BITSLICE(data, BMA4_MAG_MANUAL_ENABLE);
    }
    return rslt;
}