Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Dependencies: MAX44000 PWM_Tone_Library nexpaq_mdk
Fork of LED_Demo by
dev_stat_api.h File Reference
6LowPAN library device statistics API More...
Go to the source code of this file.
Data Structures | |
struct | dev_stat_t |
/struct dev_stat_t /brief Struct for device stats buffer structure. More... | |
Typedefs | |
typedef struct dev_stat_t | dev_stat_t |
/struct dev_stat_t /brief Struct for device stats buffer structure. | |
Functions | |
int8_t | dev_stat_internal_init (dev_stat_t *info_ptr) |
Enable device stats collection. | |
int16_t | dev_stat_get_longest_heap_sector (void) |
Get current longest free sector. | |
uint32_t | dev_stat_get_runtime_seconds (void) |
Get system runtime in seconds. |
Detailed Description
6LowPAN library device statistics API
- dev_stat_internal_init(), Enable stats update.
- dev_stat_get_longest_heap_sector(), Get longest free sector.
- dev_stat_get_runtime_seconds(), Get system runtime in seconds.
Definition in file dev_stat_api.h.
Typedef Documentation
typedef struct dev_stat_t dev_stat_t |
/struct dev_stat_t /brief Struct for device stats buffer structure.
Function Documentation
int16_t dev_stat_get_longest_heap_sector | ( | void | ) |
Get current longest free sector.
- Returns:
- Signed 16-bit length for longest sector size.
uint32_t dev_stat_get_runtime_seconds | ( | void | ) |
Get system runtime in seconds.
- Returns:
- Signed 16-bit length for longest sector size.
int8_t dev_stat_internal_init | ( | dev_stat_t * | info_ptr ) |
Enable device stats collection.
- Parameters:
-
info_ptr Static pointer where the stack updates device stat.
- Returns:
- 0, Init OK.
- -1, Null pointer parameter detected.
Generated on Tue Jul 12 2022 12:29:00 by
