Skip to content

File lt_cpu.h

FileList > api > lt_cpu.h

Go to the source code of this file.

  • #include <libretiny.h>

Public Functions

Type Name
uint8_t lt_cpu_get_core_count ()
Get CPU core count.
const char * lt_cpu_get_core_type ()
Get CPU core type name as string.
uint32_t lt_cpu_get_cycle_count ()
Get CPU cycle count.
lt_cpu_family_t lt_cpu_get_family ()
Get CPU family ID (as lt_cpu_family_t enum member).
const char * lt_cpu_get_family_name ()
Get CPU family name as string.
uint32_t lt_cpu_get_freq ()
Get CPU frequency in Hz.
uint32_t lt_cpu_get_freq_mhz ()
Get CPU frequency in MHz.
uint32_t lt_cpu_get_mac_id ()
Get CPU ID based on the last three octets of MAC address. Note: the number is 24-bit (with the MSB being zero). The 3rd-to-last octet is least-significant, the last octet is most-significant.
lt_cpu_model_t lt_cpu_get_model ()
Get CPU model ID (as lt_cpu_model_t enum member).
const char * lt_cpu_get_model_code ()
Get CPU model name as string (lowercase).
const char * lt_cpu_get_model_name ()
Get CPU model name as string (uppercase).
uint32_t lt_cpu_get_unique_id ()
Get CPU unique ID. This may be based on MAC, eFuse, etc. (family-specific). Note: the number is 24-bit (with the MSB being zero).

Public Functions Documentation

function lt_cpu_get_core_count

uint8_t lt_cpu_get_core_count () 

function lt_cpu_get_core_type

const char * lt_cpu_get_core_type () 

function lt_cpu_get_cycle_count

uint32_t lt_cpu_get_cycle_count () 

function lt_cpu_get_family

lt_cpu_family_t lt_cpu_get_family () 

function lt_cpu_get_family_name

const char * lt_cpu_get_family_name () 

function lt_cpu_get_freq

uint32_t lt_cpu_get_freq () 

function lt_cpu_get_freq_mhz

uint32_t lt_cpu_get_freq_mhz () 

function lt_cpu_get_mac_id

uint32_t lt_cpu_get_mac_id () 

function lt_cpu_get_model

lt_cpu_model_t lt_cpu_get_model () 

function lt_cpu_get_model_code

const char * lt_cpu_get_model_code () 

function lt_cpu_get_model_name

const char * lt_cpu_get_model_name () 

function lt_cpu_get_unique_id

uint32_t lt_cpu_get_unique_id () 

The documentation for this class was generated from the following file cores/common/base/api/lt_cpu.h