Data structures manipulation functions.
More...
Data structures manipulation functions.
===============================================================================
##### Support functions #####
===============================================================================
[..] This section provides a set of auxiliary functions
Decodes the channel values on a given frame.
- Parameters
-
this_device | pointer to IRPyro device |
- Return values
-
ch_value | pointer to IRPyro decoded channel data * Up to 17 Bytes containing the top frame available in the FIFO which has only
* the active channel data as well as a frame counter (the example below shows
* channel 0 and 4 active):
*
* FIFO_DPA Data
* Byte 0 channel 0 bits 23-16
* Byte 1 channel 0 bits 15-8
* Byte 2 channel 0 bits 7-0
* Byte 3 channel 4 bits 23-16
* Byte 4 channel 4 bits 15-8
* Byte 5 channel 4 bits 7-0
* Byte 6 frame count MSB
* Byte 7 frame count LSB
*
* Channel Data : 24 bits unsigned value
* Frame count : 16 bits unsigned value
* In this mode, the number of Bytes sent will depend on number of active channels e.g.
* 2 channels (ch0 and ch4) active = 2 * (3 Bytes) + (2 Bytes frame counter) = 8 Bytes
*
* |
Definition at line 1104 of file IRPyro_API_single_device_layer.c.