File lt_device.c
FileList > api > lt_device.c
Go to the source code of this file.
#include "lt_device.h"
Public Static Attributes
Type | Name |
---|---|
char * | device_name = = NULL |
Public Functions
Type | Name |
---|---|
__attribute__ ((weak)) |
|
const char * | lt_get_board_code () Get board code. |
const char * | lt_get_device_name () Get device friendly name in format "LT-<chip model>-<MAC ID>". Can be used as hostname. |
const char * | lt_get_reboot_reason_name (lt_reboot_reason_t reason) Get a textual representation of a reboot reason. |
const char * | lt_get_version () Get LibreTiny version string. |
Public Static Attributes Documentation
variable device_name
Public Functions Documentation
function __attribute__
function lt_get_board_code
function lt_get_device_name
function lt_get_reboot_reason_name
Get a textual representation of a reboot reason.
Parameters:
reason
value to convert to text, pass 0 to read from lt_reboot_get_reason()
function lt_get_version
The documentation for this class was generated from the following file cores/common/base/api/lt_device.c