mn_system.hpp
Go to the documentation of this file.
74 static void deepsleep(power_state_code code, uint64_t time_us, mn::timespan_t span = mn::timespan_t(0));
This class represents a time span (using microseconds)
Definition: mn_timespan.hpp:35
Get system infos and useful system functins of the using platform.
Definition: mn_system.hpp:44
static uint8_t get_speed()
Get the mega hertz of the cpu.
Definition: mn_system_esp32.cpp:180
static void deepsleep(power_state_code code, uint64_t time_us, mn::timespan_t span=mn::timespan_t(0))
Enter deep sleep with wakeup by timer.
Definition: mn_system_esp32.cpp:127
static void set_core_speed(const uint8_t core, const uint8_t speed)
Set the speed of a given core.
Definition: mn_system_esp32.cpp:186
static randomAccessMemory get_external()
Return the infos from the external RAM.
Definition: mn_system_esp32.cpp:156
static void restart(power_state_code code, mn::timespan_t span=mn::timespan_t(0))
Restart the CPU.
Definition: mn_system_esp32.cpp:116
static uint8_t get_core_speed(const uint8_t core)
Get the speed of a core in Mhz.
Definition: mn_system_esp32.cpp:176
static randomAccessMemory get_internal()
Return the infos from the internal RAM.
Definition: mn_system_esp32.cpp:141
static system_stream * get_partition_stream(const char *name)
Get a system stream to write/read to a partition.
Definition: mn_system_esp32.cpp:92
static void set_speed(const uint8_t speed)
Set the speed in Mhz of the cpu.
Definition: mn_system_esp32.cpp:190
static const char * get_name()
Get the name of the using Platform.
Definition: mn_system_esp32.cpp:197
static const char * get_sdk_version()
Get the version of the using platform SDKs.
Definition: mn_system_esp32.cpp:194
public static void shutdown(power_state_code code, mn::timespan_t span=mn::timespan_t(0))
Halt the CPU.
Definition: mn_system_esp32.cpp:101
A simple abstractes class for easy handle any flash drivers.
Definition: mn_system.hpp:32
virtual int erase(uint32_t offset, size_t size)=0
virtual int erase(uint32_t sector)=0
virtual int write(uint32_t offset, uint32_t *data, size_t size)=0
virtual int read(uint32_t offset, uint32_t *data, size_t size)=0
Definition: mn_allocator_typetraits.hpp:25