Skip to content

Commit e63c9d5

Browse files
committed
Declare set encryption info
1 parent d66403e commit e63c9d5

File tree

2 files changed

+20
-2
lines changed

2 files changed

+20
-2
lines changed

src/BaseClasses/ANT_BaseAntWithCallbacks.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -165,7 +165,7 @@ class BaseAntWithCallbacks : virtual public BaseAnt {
165165

166166
/**
167167
* Sends a AntRequest (TX packet) out the serial port, and wait
168-
* for a status response API frame (up until the given timeout).
168+
* for a channel response (up until the given timeout).
169169
* Essentially this just calls send() and waitForStatus().
170170
* See waitForStatus for the meaning of the return value and
171171
* more details.

src/TX/Config/ANT_SetEncryptionInfo.h

Lines changed: 19 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,24 @@
11
#ifndef ANT_SETENCRYPTIONINFO_h
22
#define ANT_SETENCRYPTIONINFO_h
33

4-
// TODO
4+
#include <TX/ANT_AntRequest.h>
5+
6+
/**
7+
* Represents a set encryption info message
8+
*
9+
* it is used to configure the ...?
10+
*/
11+
class SetEncryptionInfo : public AntRequest {
12+
public:
13+
SetEncryptionInfo();
14+
SetEncryptionInfo(uint8_t channel, uint16_t waveform);
15+
// TODO implement params
16+
uint8_t getData(uint8_t pos);
17+
uint8_t getDataLength();
18+
#ifdef NATIVE_API_AVAILABLE
19+
uint8_t execute();
20+
#endif // NATIVE_API_AVAILABLE
21+
private:
22+
};
523

624
#endif // ANT_SETENCRYPTIONINFO_h

0 commit comments

Comments
 (0)