-
-
Notifications
You must be signed in to change notification settings - Fork 26
[AE-51] Add documentation for BHY2Host #93
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
Memory usage change @ 9c3ff2a
Click for full report table
Click for full report CSV
|
|
||
// Necessary API. Update function should be continuously polled if PASSTHORUGH is ENABLED | ||
/** | ||
* @brief |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Brief description missing
* @brief | ||
* | ||
* @param passthrough Enable Serial port at 115200 bps | ||
* @param niclaConnection Configuration for set @ref NiclaWiring state |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
* @param niclaConnection Configuration for set @ref NiclaWiring state | |
* @param niclaConnection Configuration for setting @ref NiclaWiring state. This is useful to configure the board to communicate either via ESLOV, BLE or both. It's also possible to mount the Nicla Sense ME as a shield. In that case you need to pass `NICLA_AS_SHIELD` to this parameter. |
* @return true Connection successful to the Nicla board | ||
* @return false Connection unsuccessful to the Nicla board |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
According to our style guide we should use a single @return statement.
*/ | ||
bool begin(bool passthrough = false, NiclaWiring niclaConnection = NICLA_VIA_ESLOV); | ||
/** | ||
* @brief Pings sensor |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
* @brief Pings sensor | |
* @brief Requests new sensor data from the client (Nicla Sense ME) and saves it locally so it can be retrieved via `Sensor` objects. |
*/ | ||
void update(); | ||
/** | ||
* @brief Pings sensor and then sleep |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
* @brief Pings sensor and then sleep | |
* @brief Requests new sensor data from the client (Nicla Sense ME) and saves it locally so it can be retrieved via `Sensor` objects. The Nicla Sense ME's sensors are then put to sleep for the given amount of milliseconds. |
*/ | ||
uint8_t requestAvailableData(); | ||
/** | ||
* @brief Obtain long data sent over ESLOV to the host board |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Same comment as for requestAvailableData()
*/ | ||
uint8_t requestAvailableLongData(); | ||
/** | ||
* @brief Request data from the Nicla board |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is for a specific sensor, right? So do I need to pass the sensor ID or how does this work?
* | ||
* @param sData | ||
* @return true Request successful | ||
* @return false Request unsuccessful |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Transmission error only or also configuration error?
*/ | ||
bool requestSensorData(SensorDataPacket &sData); | ||
/** | ||
* @brief Request long data from the Nicla board |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Same comment as for requestSensorData()
|
||
protected: | ||
/** | ||
* @brief Nicla Sense ME is mounted as a Shield |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
What does the function do? Does it set some pins, change some configuration, ...?
Closing PR, changes are in #104 |
Description
Pull request type