/* This internal API maps the actual burst read length with user length set.  */
static uint16_t bma4_map_read_len(uint8_t *len, const struct bma4_dev *dev)
/* This internal API maps the actual burst read length with user length set.  */
static uint16_t bma4_map_read_len(uint8_t *len, const struct bma4_dev *dev)
{
    uint16_t rslt = BMA4_OK;
    switch (dev->aux_config.burst_read_length) {
    case BMA4_AUX_READ_LEN_0:
        *len = 1;
        break;
    case BMA4_AUX_READ_LEN_1:
        *len = 2;
        break;
    case BMA4_AUX_READ_LEN_2:
        *len = 6;
        break;
    case BMA4_AUX_READ_LEN_3:
        *len = 8;
        break;
    default:
        rslt = BMA4_E_OUT_OF_RANGE;
        break;
    }
    return rslt;
}