Main Content

Utilities and Shared Memory Blocks

R2026b
Data marshalling

To manage data flows at the bit and byte level, use the utilities blocks and shared memory blocks.

Blocks

Bit Packing blockBit PackingConstruct data frames
Bit Unpacking blockBit UnpackingDeconstruct data frames
Byte Packing blockByte PackingConstruct data frames
Byte Unpacking blockByte UnpackingDeconstruct data frames
Byte Reversal/Change Endianess blockByte Reversal/Change EndianessReverse little-endian data for big-endian processor
Protocol Decoder blockProtocol DecoderDecode a uint8 byte stream by specifying the packet structure (Since R2023b)
Protoco Encoder blockProtocol EncoderEncode input data into a uint8 byte stream by specifying the packet structure (Since R2023b)
Shared Memory Pack blockShared Memory PackShared memory pack
Shared Memory Unpack blockShared Memory UnpackShared memory unpacking

Featured Examples