Skip to content

Instantly share code, notes, and snippets.

@Thar0l
Created February 28, 2020 14:38
Show Gist options
  • Select an option

  • Save Thar0l/04156fbaebd82507ac2a6fe74d557dbf to your computer and use it in GitHub Desktop.

Select an option

Save Thar0l/04156fbaebd82507ac2a6fe74d557dbf to your computer and use it in GitHub Desktop.
IDs
struct Layer
{
enum
{
System = 0,
Phy = 1,
Reserved1 = 2,
Mac = 3,
Adp = 4,
Reserved2 = 5,
Control = 6,
Application = 7
};
};
struct Command
{
struct System
{
enum
{
Annotatte = 0,
GetFwVersion = 2,
IncreaseSecurity = 3,
EraseUnconfirmedFw = 4,
WriteUnconfirmedFw = 5,
LoadUnconfirmedFw = 6,
ConfirmFw = 7,
EnableSoftFw = 8,
DisableSoftFw = 9,
LoadCustomFw = 16,
Reboot = 255
};
};
struct Phy
{
enum
{
GetInfo = 0,
SendData = 1,
SendAck = 2
};
};
struct Mac
{
enum
{
SendCommand = 1
};
};
struct Adp
{
enum
{
LbpRegistration = 1,
AddStaticRoute = 2
};
};
struct Control
{
enum
{
Log = 0,
Get = 1,
Set = 2,
GetScheme = 3,
GetExScheme = 11,
Save = 4,
Load = 5,
Reset = 6,
Data = 10,
Info = 127
};
};
struct Application
{
enum
{
Data = 1,
FindRoute = 2,
FindPath = 3,
DataIndication = 10,
RouteIndication = 11,
PathIndication = 12
};
};
};
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment