liftof_rb::control

Function get_blob_buffer_occ

Source
pub fn get_blob_buffer_occ(which: &RamBuffer) -> Result<u32, RegisterError>
Expand description

Get the blob buffer occupancy for one of the two buffers

This is a bit tricky. This will continuously change, as the DRS4 is writing into the memory. At some point, it will be full, not changing it’s value anymore. At that point, if set, the firmware has switched automatically to the other buffer.

Also, it will only read something like zero if the DMA has completly been reset (calling dma_reset).

§Arguments

  • which : select the blob buffer to query