Function ring_buf_pop(ring_buf_t *, ring_slot_hdr_t *, uint8_t *)

Function Documentation

bool ring_buf_pop(ring_buf_t *rb, ring_slot_hdr_t *hdr, uint8_t *payload)

Pop the oldest slot into the supplied buffers.

Waits up to 1 ms while acquiring the internal mutex.

매개변수:
  • rb[in] Ring buffer handle.

  • hdr[out] Location to receive the slot header metadata.

  • payload[out] Location to receive the payload data.