Structures

master
ColumbusTech 2018-11-22 22:21:55 +03:00
parent 590f5a372f
commit 6bc74ea36a
1 changed files with 33 additions and 37 deletions

View File

@ -52,7 +52,9 @@
* @file corinfo.h * @file corinfo.h
*/ */
struct corinfo_cpu struct corinfo
{
struct
{ {
uint32_t Count; //!< Number of CPU cores. uint32_t Count; //!< Number of CPU cores.
uint32_t Frequency; //!< CPU frequency, in MHz. uint32_t Frequency; //!< CPU frequency, in MHz.
@ -70,27 +72,21 @@ struct corinfo_cpu
uint8_t SSE41; uint8_t SSE41;
uint8_t SSE42; uint8_t SSE42;
uint8_t AVX; uint8_t AVX;
}; } Cpu;
struct corinfo_ram struct
{ {
uint64_t Total; //!< Physical RAM size, in KB. uint64_t Total; //!< Physical RAM size, in KB.
uint64_t Free; //!< Available physical RAM size, in KB. uint64_t Free; //!< Available physical RAM size, in KB.
uint32_t Usage; //!< A number between 0 and 100 that specifies the approximate percentage of physical memory that is in use. uint32_t Usage; //!< A number between 0 and 100 that specifies the approximate percentage of physical memory that is in use.
}; } Ram;
struct corinfo_hdd struct
{ {
uint64_t Total; //!< HDD size, in KB. uint64_t Total; //!< HDD size, in KB.
uint64_t Free; //!< Available HDD size, in KB. uint64_t Free; //!< Available HDD size, in KB.
uint32_t Usage; //!< A number between 0 and 100 that specifies the approximate percentage of HDD memory that is in use. uint32_t Usage; //!< A number between 0 and 100 that specifies the approximate percentage of HDD memory that is in use.
}; } Hdd;
struct corinfo
{
struct corinfo_cpu Cpu;
struct corinfo_ram Ram;
struct corinfo_hdd Hdd;
}; };
/** /**