Skip to content

System

Enums

mira_sys_startup_reason_t

Name Value Description
MIRA_SYS_STARTUP_REASON_POWER_ON 0
MIRA_SYS_STARTUP_REASON_RESET_PIN
MIRA_SYS_STARTUP_REASON_WATCHDOG
MIRA_SYS_STARTUP_REASON_SOFT
MIRA_SYS_STARTUP_REASON_UNSPECIFIED
MIRA_SYS_STARTUP_REASON_UNKNOWN

Structs

mira_sys_device_id_t

Type Name Description
uint8_t[8] u8
uint16_t[4] u16
uint32_t[2] u32

Union type for the device id.

Functions

mira_sys_reset

void mira_sys_reset(
    void);

Resets the node.

mira_sys_get_startup_reason

mira_sys_startup_reason_t mira_sys_get_startup_reason(
    void);

Get the reason for the latest CPU startup.

Return

see enum

mira_sys_get_device_id

void mira_sys_get_device_id(
    mira_sys_device_id_t*  dst);

Gets the device id.

Parameters

Parameter Description
dst Location where the device id will be stored.

Return

void