File tree Expand file tree Collapse file tree 2 files changed +10
-9
lines changed
Expand file tree Collapse file tree 2 files changed +10
-9
lines changed Original file line number Diff line number Diff line change 11#include < CommonDataPages/RX/ANTPLUS_RequestDataPage.h>
2+ #include < CommonDataPages/ANTPLUS_CommonDataPageDefines.h>
3+
4+ RequestDataPage::RequestDataPage (AntRxDataResponse& dp) : BaseDataPage<AcknowledgedData>(dp) {
25
3- RequestDataPage::RequestDataPage (AcknowledgedData& dp) : BaseDataPage<AcknowledgedData>(dp) {
4- // TODO
56}
67
78uint16_t RequestDataPage::getSlaveSerialNumber () {
8- // TODO
9+ return getData (ANTPLUS_COMMON_DATAPAGE_REQUESTDATAPAGE_SLAVESERIALNUMBER_LSB_BYTE) | ( getData (ANTPLUS_COMMON_DATAPAGE_REQUESTDATAPAGE_SLAVESERIALNUMBER_MSB_BYTE) << ANTPLUS_COMMON_DATAPAGE_REQUESTDATAPAGE_SLAVESERIALNUMBER_MSB_SHIFT);
910}
1011
1112uint8_t RequestDataPage::getDescriptorByte1 () {
12- // TODO
13+ return getData (ANTPLUS_COMMON_DATAPAGE_REQUESTDATAPAGE_DESCRIPTORBYTE1_BYTE);
1314}
1415
1516uint8_t RequestDataPage::getDescriptorByte2 () {
16- // TODO
17+ return getData (ANTPLUS_COMMON_DATAPAGE_REQUESTDATAPAGE_DESCRIPTORBYTE2_BYTE);
1718}
1819
1920uint8_t RequestDataPage::getRequestedTransmissionResponse () {
20- // TODO
21+ return getData (ANTPLUS_COMMON_DATAPAGE_REQUESTDATAPAGE_REQUESTEDTRANSMISSIONRESPONSE_BYTE);
2122}
2223
2324uint8_t RequestDataPage::getRequestedPageNumber () {
24- // TODO
25+ return getData (ANTPLUS_COMMON_DATAPAGE_REQUESTDATAPAGE_REQUESTEDPAGENUMBER_BYTE);
2526}
2627
2728uint8_t RequestDataPage::getCommandType () {
28- // TODO
29+ return getData (ANTPLUS_COMMON_DATAPAGE_REQUESTDATAPAGE_COMMANDTYPE_BYTE);
2930}
Original file line number Diff line number Diff line change 99
1010class RequestDataPage : public BaseDataPage <AcknowledgedData> {
1111public:
12- RequestDataPage (AcknowledgedData & dp);
12+ RequestDataPage (AntRxDataResponse & dp);
1313 uint16_t getSlaveSerialNumber ();
1414 uint8_t getDescriptorByte1 ();
1515 uint8_t getDescriptorByte2 ();
You can’t perform that action at this time.
0 commit comments