주요 콘텐츠

Custom Data Communication

R2026b
Custom data communication between STM32 processors and other devices

Efficiently pack data for transmission and interpret received data for reliable communication between STM32 processors and other devices. Use the blocks to create and manage custom communication formats for STM32 processors to exchange information accurately with external devices.

Blocks

Byte Pack blockByte PackConvert input signals to uint8 vector
Byte Unpack blockByte Unpack Convert uint8 vector to input signals
Byte Reversal blockByte ReversalReverse order of bytes in input word
CAN Pack blockCAN PackPack individual signals into CAN message
CAN Unpack blockCAN UnpackUnpack individual signals from CAN messages
CAN FD Pack blockCAN FD PackPack individual signals into message for CAN FD bus
CAN FD Unpack blockCAN FD UnpackUnpack individual signals from CAN FD messages
Memory Copy blockMemory CopyCopy data from and to memory section
Idle Task blockIdle TaskCreate free-running task (Since R2024a)
Protocol EncoderProtocol EncoderEncode input data into a uint8 byte stream by specifying the packet structure (Since R2023a)
Protocol DecoderProtocol DecoderDecode a uint8 byte stream by specifying the packet structure (Since R2023a)
Execution Profiler BlockExecution ProfilerProfile execution time of functions using either DWT Timer, GPIO or Timer measurement modes (Since R2025a)
Register Read/Write BlockRegister Read/WriteRead from or write to various bit fields of STM32 registers (Since R2026a)

Topics

Featured Examples