Open Model Railroad Network (OpenMRN)
Loading...
Searching...
No Matches
DCCPacket::pkt_t Struct Reference

Specifies the meaning of the command byte for packets to send. More...

#include <packet.h>

Public Attributes

uint8_t is_pkt: 1
 Always 0.
 
uint8_t is_marklin: 1
 0: DCC packet, 1: motorola packet.
 
uint8_t skip_ec: 1
 typically for DCC packets: 1: do NOT append an EC byte to the end of the packet.
 
uint8_t send_long_preamble: 1
 1: send long preamble instead of packet.
 
uint8_t sense_ack: 1
 1: wait for service mode ack and report it back to the host.
 
uint8_t rept_count: 2
 The packet will be sent 1 + rept_count times to the wire.
 
uint8_t csum_error: 1
 1 if there was a checksum error in this packet.
 

Detailed Description

Specifies the meaning of the command byte for packets to send.

Definition at line 57 of file packet.h.

Member Data Documentation

◆ csum_error

uint8_t DCCPacket::pkt_t::csum_error

1 if there was a checksum error in this packet.

Definition at line 76 of file packet.h.

◆ is_marklin

uint8_t DCCPacket::pkt_t::is_marklin

0: DCC packet, 1: motorola packet.

Definition at line 62 of file packet.h.

◆ is_pkt

uint8_t DCCPacket::pkt_t::is_pkt

Always 0.

Definition at line 60 of file packet.h.

◆ rept_count

uint8_t DCCPacket::pkt_t::rept_count

The packet will be sent 1 + rept_count times to the wire.

default: 0.

Definition at line 74 of file packet.h.

◆ send_long_preamble

uint8_t DCCPacket::pkt_t::send_long_preamble

1: send long preamble instead of packet.

0: send normal preamble and pkt.

Definition at line 69 of file packet.h.

◆ sense_ack

uint8_t DCCPacket::pkt_t::sense_ack

1: wait for service mode ack and report it back to the host.

Definition at line 71 of file packet.h.

◆ skip_ec

uint8_t DCCPacket::pkt_t::skip_ec

typically for DCC packets: 1: do NOT append an EC byte to the end of the packet.

Definition at line 66 of file packet.h.


The documentation for this struct was generated from the following file: