Skip to content

Commit

Permalink
#27 make TxMessage data members public
Browse files Browse the repository at this point in the history
  • Loading branch information
HusseinAbdelhamid committed Sep 24, 2024
1 parent 4910813 commit ee96a27
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/message.rs
Original file line number Diff line number Diff line change
Expand Up @@ -165,11 +165,11 @@ impl<const L: usize> MessageType<L> for CanFd<L> {
#[derive(Clone, Debug, Eq, PartialEq, Ord, PartialOrd)]
pub struct TxMessage<T: MessageType<L>, const L: usize> {
/// first 2 bytes of Transmit Message Object
pub(crate) header: TxHeader,
pub header: TxHeader,
/// Payload bytes of Message Object
pub(crate) buff: Bytes,
pub buff: Bytes,
/// CAN message type (CAN 2.0 or CAN FD)
pub(crate) message_type: T,
pub message_type: T,
}

impl<T: MessageType<L>, const L: usize> TxMessage<T, L> {
Expand Down

0 comments on commit ee96a27

Please sign in to comment.