This post is older than 2 years and might not be relevant anymore
More Info: Consider searching for newer posts
This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

SD16 nRF52840 - Queue library

Hi everyone,

I am experimenting with the queue library 

typedef struct
{
  int16_t records[16];
} my_sensor_data_t;

my_sensor_data_t my_sensor_data;

NRF_QUEUE_DEF(my_sensor_data_t, m_sensor_data_queue, 200, NRF_QUEUE_MODE_OVERFLOW);

void my_sensors_buffer() {

  ret_code_t err_code;
  my_sensor_data.records[0] = 1;
  my_sensor_data.records[1] = 2;
  my_sensor_data.records[2] = 3;
  my_sensor_data.records[3] = 4;
  my_sensor_data.records[4] = 5;
  my_sensor_data.records[5] = 6;
  err_code = nrf_queue_push(&m_sensor_data_queue, &my_sensor_data); // buffer some data
  APP_ERROR_CHECK(err_code);


}

After pushing some data by calling nrf_queue_push how do I print the data stored in the buffer?

Parents Reply Children
No Data
Related