added readout of some tx registers
This commit is contained in:
@ -16,6 +16,8 @@ namespace SYRLINKS {
|
||||
static const DeviceCommandId_t SET_TX_MODE_CW = 0x05;
|
||||
static const DeviceCommandId_t ACK_REPLY = 0x06;
|
||||
static const DeviceCommandId_t READ_TX_STATUS = 0x07;
|
||||
static const DeviceCommandId_t READ_TX_WAVEFORM = 0x08;
|
||||
static const DeviceCommandId_t READ_TX_AGC_VALUE = 0x09;
|
||||
|
||||
/** Size of a simple transmission success response */
|
||||
static const uint8_t ACK_SIZE = 11;
|
||||
@ -25,6 +27,8 @@ namespace SYRLINKS {
|
||||
/** Size of reply to an rx status registers request */
|
||||
static const uint8_t RX_STATUS_REGISTERS_REPLY_SIZE = 49;
|
||||
static const uint8_t READ_TX_STATUS_REPLY_SIZE = 13;
|
||||
static const uint8_t READ_TX_WAVEFORM_REPLY_SIZE = 13;
|
||||
static const uint8_t READ_TX_AGC_VALUE_REPLY_SIZE = 15;
|
||||
|
||||
static const uint8_t RX_DATASET_ID = READ_RX_STATUS_REGISTERS;
|
||||
static const uint8_t TX_DATASET_ID = READ_TX_STATUS;
|
||||
@ -88,6 +92,8 @@ public:
|
||||
}
|
||||
|
||||
lp_var_t<uint8_t> txStatus = lp_var_t<uint8_t>(sid.objectId, TX_STATUS, this);
|
||||
lp_var_t<uint8_t> txWaveform = lp_var_t<uint8_t>(sid.objectId, TX_WAVEFORM, this);
|
||||
lp_var_t<uint16_t> txAgcValue = lp_var_t<uint16_t>(sid.objectId, TX_AGC_VALUE, this);
|
||||
};
|
||||
|
||||
}
|
||||
|
Reference in New Issue
Block a user