396aa09915 | ||
---|---|---|
.. | ||
adapter | ||
frameworks | ||
hals | ||
interfaces | ||
simulator | ||
LICENSE | ||
README.md | ||
README_zh.md |
README.md
syspara_lite
Introduction
The syspara_lite module provides APIs for obtaining device information, such as the product name, brand name, and manufacturer name, based on the OpenHarmony Product Compatibility Specifications PCS
. It also provides APIs for setting and obtaining system attributes.
Directory Structure
base/startup/syspara_lite/ # syspara_lite module
├── frameworks # Source files for the syspara_lite module
├── hals # Header files for the hardware abstraction layer of the syspara_lite module
└── interfaces # External APIs for the syspara_lite module
Constraints
- The syspara_lite module is developed using the C language.
- It supports mini-system devices
reference memory ≥ 128 KB
, such as Hi3861 V100, and small-system devicesreference memory ≥ 1 MB
, such as Hi3516D V300 and Hi3518E V300. - The fields of system attributes are defined by original equipment manufacturers
OEMs
. Currently, only default values are provided. The specific values need to be adjusted as required.
Usage
To obtain the system attributes, use the following code:
char* value1 = GetProductType();
printf("Product type =%s\n", value1);
free(value1);
char* value2 = GetManufacture();
printf("Manufacture =%s\n", value2);
free(value2);
char* value3 = GetBrand();
printf("GetBrand =%s\n", value3);
free(value3);