ON Semiconductor / mbed-os

Dependents:   mbed-TFT-example-NCS36510 mbed-Accelerometer-example-NCS36510 mbed-Accelerometer-example-NCS36510

Embed: (wiki syntax)

« Back to documentation index

dev_stat_api.h File Reference

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

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_ptrStatic pointer where the stack updates device stat.
Returns:
0, Init OK.
-1, Null pointer parameter detected.