mirror of
https://github.com/DCC-EX/CommandStation-EX.git
synced 2024-11-27 10:06:13 +01:00
add READ_REGISTER name to Z21 parser
This commit is contained in:
parent
16362c14cc
commit
e6dde5a11c
|
@ -780,7 +780,7 @@ bool Z21Throttle::parse(byte *networkPacket, int len) {
|
||||||
done = true;
|
done = true;
|
||||||
break;
|
break;
|
||||||
case LAN_X_HEADER_SET_TURNOUT:
|
case LAN_X_HEADER_SET_TURNOUT:
|
||||||
case 0x22:
|
case LAN_X_HEADER_READ_REGISTER:
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
|
|
|
@ -182,6 +182,7 @@ class Z21Throttle {
|
||||||
#define LAN_GET_CONFIG 0x12
|
#define LAN_GET_CONFIG 0x12
|
||||||
|
|
||||||
#define LAN_X_HEADER_GENERAL 0x21
|
#define LAN_X_HEADER_GENERAL 0x21
|
||||||
|
#define LAN_X_HEADER_READ_REGISTER 0x22
|
||||||
#define LAN_X_HEADER_SET_STOP 0x80
|
#define LAN_X_HEADER_SET_STOP 0x80
|
||||||
#define LAN_X_HEADER_GET_FIRMWARE_VERSION 0xF1 //0x141 0x21 0x21 0x00
|
#define LAN_X_HEADER_GET_FIRMWARE_VERSION 0xF1 //0x141 0x21 0x21 0x00
|
||||||
#define LAN_X_HEADER_GET_LOCO_INFO 0xE3
|
#define LAN_X_HEADER_GET_LOCO_INFO 0xE3
|
||||||
|
@ -192,6 +193,7 @@ class Z21Throttle {
|
||||||
#define LAN_X_HEADER_CV_WRITE 0x24
|
#define LAN_X_HEADER_CV_WRITE 0x24
|
||||||
#define LAN_X_HEADER_CV_POM 0xE6
|
#define LAN_X_HEADER_CV_POM 0xE6
|
||||||
|
|
||||||
|
#define LAN_X_DB0_READ_REGISTER 0x11
|
||||||
#define LAN_X_DB0_GET_VERSION 0x21
|
#define LAN_X_DB0_GET_VERSION 0x21
|
||||||
#define LAN_X_DB0_GET_STATUS 0x24
|
#define LAN_X_DB0_GET_STATUS 0x24
|
||||||
#define LAN_X_DB0_SET_TRACK_POWER_OFF 0x80
|
#define LAN_X_DB0_SET_TRACK_POWER_OFF 0x80
|
||||||
|
|
Loading…
Reference in New Issue
Block a user