/* This API is used to parse and store the skipped_frame_count from the FIFO data in the structure instance dev.  */
static void unpack_skipped_frame(uint16_t *data_index, const struct bmi160_dev *dev)
/* This API is used to parse and store the skipped_frame_count from the FIFO data in the structure instance dev.  */
static void unpack_skipped_frame(uint16_t *data_index, const struct bmi160_dev *dev)
{
    if (*data_index >= dev->fifo->length)
    {
        *data_index = dev->fifo->length;
    }
    else
    {
        dev->fifo->skipped_frame_count = dev->fifo->data[*data_index];
        *data_index = (*data_index) + 1;
    }
}