Skip to main content

Module msg

Module msg 

Source
Expand description

Safe, idiomatic wrappers for the CFE Message Services (CFE_MSG) API.

This module provides MessageRef and MessageMut structs to safely create, access, and modify the headers of CFE Software Bus messages. It operates on Rust byte slices (&[u8] and &mut [u8]) to prevent common errors associated with raw pointer manipulation.

Structs§

CmdHeader
A Command Header.
MessageMut
A safe, writeable wrapper around a CFE message byte slice.
MessageRef
A safe, read-only wrapper around a CFE message byte slice.
MsgId
A type-safe, zero-cost wrapper for a cFE Software Bus Message ID.
TlmHeader
A Telemetry Header.

Enums§

MsgType
The type of a cFE message (Command or Telemetry).

Functions§

get_next_sequence_count
Gets the next sequence count value, handling rollovers correctly.
message_string_get
Copies a string from a fixed-size C-style char array within a message to a Rust buffer.
message_string_set
Copies a Rust string slice into a fixed-size C-style char array within a message.