Skip to content

Commit 8b629f9

Browse files
committed
Add some more comments
1 parent 56913e1 commit 8b629f9

File tree

1 file changed

+24
-1
lines changed

1 file changed

+24
-1
lines changed

src/MainClasses/ANTPLUS_AntPlusRouter.h

Lines changed: 24 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,17 +14,40 @@ class AntPlusRouter {
1414
AntPlusRouter();
1515
AntPlusRouter(BaseAntWithCallbacks* driver);
1616
AntPlusRouter(BaseAntWithCallbacks* driver, const uint8_t* key);
17+
/**
18+
* Give the router a driver to use (Ant, NativeAnt, SpiAnt)
19+
*/
1720
uint8_t setDriver(BaseAntWithCallbacks* driver);
21+
/**
22+
* Give the router the ANT+ network key
23+
* HINT: you get this number from http://www.thisisant.com/developer/ant-plus/ant-plus-basics/network-keys/
24+
* DO NOT STORE THIS KEY PUBLICLY
25+
*/
1826
void setAntPlusNetworkKey(const uint8_t* key);
27+
/**
28+
* Associates a profile with a channel
29+
*/
1930
void setProfile(uint8_t channel, BaseProfile* profile);
2031
void send(AntRequest& msg);
2132
/**
2233
* Returns the maximum number of channels the radio
2334
* connected can support
2435
*/
2536
uint8_t getMaxChannels();
37+
/**
38+
* Process any incoming messages and forward them
39+
* to the registered callbacks
40+
*/
2641
void loop();
42+
/**
43+
* Reset the whole system back to its defaults
44+
* This does not remove callbacks or the driver
45+
* but does reset the driver and the radio.
46+
*/
2747
void reset();
48+
/**
49+
* Stops all profiles and resets the radio
50+
*/
2851
uint8_t resetRadio(uint8_t waitForStartup);
2952
/******************************************
3053
*LIBRARY INTERNAL ONLY FUNCTIONS BELOW
@@ -55,4 +78,4 @@ class AntPlusRouter {
5578
uint8_t _radioStarted = ANTPLUS_DRIVER_STATE_UNKNOWN;
5679
};
5780

58-
#endif // ANTPLUS_ANTPLUSROUTER_h
81+
#endif // ANTPLUS_ANTPLUSROUTER_h

0 commit comments

Comments
 (0)