sys/trickle: document time interval unit 'ms'
Unit is milliseconds as said here: https://github.com/RIOT-OS/RIOT/pull/9145#discussion_r188861183
This commit is contained in:
parent
9ecde3b5a6
commit
f61dbb6bdb
@ -49,11 +49,12 @@ typedef struct {
|
|||||||
typedef struct {
|
typedef struct {
|
||||||
uint8_t k; /**< redundancy constant */
|
uint8_t k; /**< redundancy constant */
|
||||||
uint8_t Imax; /**< maximum interval size,
|
uint8_t Imax; /**< maximum interval size,
|
||||||
described as of Imin doublings */
|
described as of Imin doublings in ms */
|
||||||
uint16_t c; /**< counter */
|
uint16_t c; /**< counter */
|
||||||
uint32_t Imin; /**< minimum interval size */
|
uint32_t Imin; /**< minimum interval size in ms */
|
||||||
uint32_t I; /**< current interval size */
|
uint32_t I; /**< current interval size in ms */
|
||||||
uint32_t t; /**< time within the current interval */
|
uint32_t t; /**< time within the current interval
|
||||||
|
in ms */
|
||||||
kernel_pid_t pid; /**< pid of trickles target thread */
|
kernel_pid_t pid; /**< pid of trickles target thread */
|
||||||
trickle_callback_t callback; /**< callback function and parameter that
|
trickle_callback_t callback; /**< callback function and parameter that
|
||||||
trickle calls after each interval */
|
trickle calls after each interval */
|
||||||
@ -81,8 +82,8 @@ void trickle_reset_timer(trickle_t *trickle);
|
|||||||
* @param[in] pid target thread
|
* @param[in] pid target thread
|
||||||
* @param[in] trickle trickle timer
|
* @param[in] trickle trickle timer
|
||||||
* @param[in] msg_type msg_t.type for messages
|
* @param[in] msg_type msg_t.type for messages
|
||||||
* @param[in] Imin minimum interval
|
* @param[in] Imin minimum interval in ms
|
||||||
* @param[in] Imax maximum interval
|
* @param[in] Imax maximum interval in ms
|
||||||
* @param[in] k redundancy constant
|
* @param[in] k redundancy constant
|
||||||
*/
|
*/
|
||||||
void trickle_start(kernel_pid_t pid, trickle_t *trickle, uint16_t msg_type,
|
void trickle_start(kernel_pid_t pid, trickle_t *trickle, uint16_t msg_type,
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user