openharmony_ci d4509a49a8 !232 JSDOC整改
Merge pull request !232 from fanjiaojiao/master
2023-04-10 16:15:32 +00:00
2022-09-02 16:22:04 +08:00
2022-10-14 15:06:27 +08:00
2022-07-29 21:27:11 +08:00
2023-04-10 14:28:12 +08:00
2021-03-11 18:45:12 +08:00
2022-11-25 10:38:59 +08:00

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 devices (reference 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 = GetDeviceType();
printf("Device 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);

Repositories Involved

Startup subsystem

startup_syspara_lite

startup_appspawn_lite

startup_bootstrap_lite

startup_init_lite

S
Description
Implementation of the syspara module | 系统属性实现模块
Readme 876 KiB
Languages
C++ 59.7%
C 40.3%