kopia lustrzana https://github.com/weetmuts/wmbusmeters
24 wiersze
844 B
C
24 wiersze
844 B
C
|
// Copyright (C) 2019 Fredrik Öhrström (CC0-1.0)
|
||
|
// Defines documented in the Manual for the AMBER wM-Bus Modules Version 2.7
|
||
|
|
||
|
#define AMBER_SERIAL_SOF 0xFF
|
||
|
|
||
|
#define CMD_DATA_REQ 0x00
|
||
|
#define CMD_DATARETRY_REQ 0x02
|
||
|
#define CMD_DATA_IND 0x03
|
||
|
#define CMD_SET_MODE_REQ 0x04
|
||
|
#define CMD_RESET_REQ 0x05
|
||
|
#define CMD_SET_CHANNEL_REQ 0x06
|
||
|
#define CMD_SET_REQ 0x09
|
||
|
#define CMD_GET_REQ 0x0A
|
||
|
#define CMD_SERIALNO_REQ 0x0B
|
||
|
#define CMD_FWV_REQ 0x0C
|
||
|
#define CMD_RSSI_REQ 0x0D
|
||
|
#define CMD_SETUARTSPEED_REQ 0x10
|
||
|
#define CMD_FACTORYRESET_REQ 0x11
|
||
|
#define CMD_DATA_PRELOAD_REQ 0x30
|
||
|
#define CMD_DATA_CLR_PRELOAD_REQ 0x31
|
||
|
#define CMD_SET_AES_KEY_REQ 0x50
|
||
|
#define CMD_CLR_AES_KEY_REQ 0x51
|
||
|
#define CMD_GET_AES_DEV_REQ 0x52
|