Open Model Railroad Network (OpenMRN)
Loading...
Searching...
No Matches
openlcb::SimpleInfoDescriptor Struct Reference

This structure defines how to piece together a reply to a Simple Info request, sich as SNIP. More...

#include <SimpleInfoProtocol.hxx>

Public Types

enum  Cmd {
  END_OF_DATA = 0 , C_STRING = 1 , LITERAL_BYTE = 2 , CHAR_ARRAY = 3 ,
  FILE_C_STRING = 4 , FILE_LITERAL_BYTE = 5 , FILE_CHAR_ARRAY = 6
}
 

Public Attributes

uint8_t cmd
 
uint8_t arg
 
uint16_t arg2
 
const char * data
 Points to a string if the command requires so.
 

Detailed Description

This structure defines how to piece together a reply to a Simple Info request, sich as SNIP.

These structures will come in an array, where each member of the array defines a variable number of bytes to append to the end of the reply message. The last structure should be an EOF.

Definition at line 88 of file SimpleInfoProtocol.hxx.

Member Enumeration Documentation

◆ Cmd

enum openlcb::SimpleInfoDescriptor::Cmd

Definition at line 90 of file SimpleInfoProtocol.hxx.

Member Data Documentation

◆ arg

uint8_t openlcb::SimpleInfoDescriptor::arg

Definition at line 102 of file SimpleInfoProtocol.hxx.

◆ arg2

uint16_t openlcb::SimpleInfoDescriptor::arg2

Definition at line 103 of file SimpleInfoProtocol.hxx.

◆ cmd

uint8_t openlcb::SimpleInfoDescriptor::cmd

Definition at line 101 of file SimpleInfoProtocol.hxx.

◆ data

const char* openlcb::SimpleInfoDescriptor::data

Points to a string if the command requires so.

Definition at line 105 of file SimpleInfoProtocol.hxx.


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