File tree Expand file tree Collapse file tree 1 file changed +38
-0
lines changed
Expand file tree Collapse file tree 1 file changed +38
-0
lines changed Original file line number Diff line number Diff line change 5050#define CLOSE_CHANNEL_LENGTH 0x01
5151#define BROADCAST_DATA_LENGTH 0x09
5252#define ACKNOWLEDGE_DATA_LENGTH 0x09
53+ #define REQUEST_MESSAGE_LENGTH 0x01
5354
5455/* *
5556 * Channel Status BitField Defines
@@ -835,6 +836,43 @@ uint8_t CloseChannel::getData(uint8_t pos) {
835836 return _channel;
836837}
837838
839+ /* Extended message format not currently supported */
840+ RequestMessage::RequestMessage () : AntRequest(REQUEST_MESSAGE) {
841+
842+ }
843+
844+ void RequestMessage::setRequestedMessage (uint8_t msgId) {
845+ _msgId = msgId;
846+ }
847+
848+ uint8_t RequestMessage::getRequestedMessage () {
849+ return _msgId;
850+ }
851+
852+ void RequestMessage::setSubId (uint8_t subId) {
853+ _subId = subId;
854+ }
855+
856+ uint8_t RequestMessage::getSubId () {
857+ return _subId;
858+ }
859+
860+ uint8_t RequestMessage::getData (uint8_t pos) {
861+ if (pos == 0 ) {
862+ return _subId;
863+ }
864+ else if (pos == 1 ) {
865+ return _msgId;
866+ }
867+ else {
868+ return INVALID_REQUEST;
869+ }
870+ }
871+
872+ uint8_t RequestMessage::getDataLength () {
873+ return REQUEST_MESSAGE_LENGTH;
874+ }
875+
838876/* Extended message format not currently supported */
839877BroadcastMsg::BroadcastMsg () : AntRequest(BROADCAST_DATA) {
840878
You can’t perform that action at this time.
0 commit comments