|
Name |
|
Date |
Size |
#Lines |
LOC |
| .. | | - | - |
| audio/ | | 12-May-2024 | - | 126,011 | 97,494 |
| base/ | | 12-May-2024 | - | 208 | 177 |
| battery/ | | 12-May-2024 | - | 8,529 | 6,724 |
| bluetooth/ | | 12-May-2024 | - | 11,545 | 8,989 |
| camera/ | | 12-May-2024 | - | 65,510 | 48,809 |
| codec/ | | 12-May-2024 | - | 35,544 | 27,892 |
| connected_nfc_tag/ | | 12-May-2024 | - | 315 | 229 |
| display/ | | 12-May-2024 | - | 29,251 | 21,145 |
| distributed_camera/ | | 12-May-2024 | - | 7,588 | 6,106 |
| face_auth/ | | 12-May-2024 | - | 1,074 | 816 |
| fingerprint_auth/ | | 12-May-2024 | - | 1,041 | 789 |
| format/ | | 12-May-2024 | - | 1,858 | 851 |
| input/ | | 12-May-2024 | - | 10,179 | 7,277 |
| light/ | | 12-May-2024 | - | 3,541 | 2,339 |
| location/ | | 12-May-2024 | - | 2,357 | 1,656 |
| memorytracker/ | | 12-May-2024 | - | 469 | 351 |
| motion/ | | 12-May-2024 | - | 1,088 | 790 |
| nfc/ | | 12-May-2024 | - | 667 | 502 |
| partitionslot/ | | 12-May-2024 | - | 698 | 527 |
| pin_auth/ | | 12-May-2024 | - | 7,094 | 5,280 |
| power/ | | 12-May-2024 | - | 656 | 535 |
| ril/ | | 12-May-2024 | - | 1,140 | 927 |
| sensor/ | | 12-May-2024 | - | 10,367 | 7,404 |
| thermal/ | | 12-May-2024 | - | 3,382 | 2,676 |
| usb/ | | 12-May-2024 | - | 69,729 | 52,374 |
| user_auth/ | | 12-May-2024 | - | 10,770 | 8,640 |
| vibrator/ | | 12-May-2024 | - | 4,565 | 3,042 |
| wlan/ | | 12-May-2024 | - | 15,222 | 11,517 |
| .clang-format | D | 12-May-2024 | 892 | 29 | 28 |
| .gitignore | D | 12-May-2024 | 27 | 6 | 5 |
| LICENSE | D | 12-May-2024 | 12.5 KiB | 229 | 195 |
| OAT.xml | D | 12-May-2024 | 7.9 KiB | 106 | 61 |
| README.md | D | 12-May-2024 | 3.4 KiB | 37 | 21 |
| README_zh.md | D | 12-May-2024 | 3 KiB | 39 | 23 |
README.md
1# peripheral<a name="EN-US_TOPIC_0000001101652164"></a>
2
3- [Introduction](#section11660541593)
4- [Directory Structure](#section161941989596)
5- [Repositories Involved](#section1371113476307)
6
7## Introduction<a name="section11660541593"></a>
8
9This repository stores the hardware driver interfaces \(HDIs\), hardware abstraction layer \(HAL\) implementation, driver models, and test cases related to drivers of peripherals. The directory is structured based on the driver modules. For details about each driver module, see the readme file in the sub-directory of each module.
10
11## Directory Structure<a name="section161941989596"></a>
12
13The code directory of this repository is **/drivers/peripheral**, which contains the following sub-directories:
14
15- **audio**: This sub-directory stores definitions of audio HDIs that can be used to manage loading and unloading of sound card drivers, create audio renderers and capturers, select an audio scene, set audio properties, set the audio volume, and start or stop audio playback and recording. For details, see the [readme](audio/README.md) file in the **audio** sub-directory.
16- **codec**: This sub-directory stores definitions of codec HDIs, which allow upper-layer services to perform media codec-related operations. For details, see the [readme](codec/README.md) file in the **codec** sub-directory.
17- **display**: This sub-directory stores definitions of display HDIs and their default implementations. These HDIs allow upper-layer graphics services to manage display layers, manage memory of the display module, and implement hardware acceleration. For details, see the [readme](display/README.md) file in the **display** sub-directory.
18
19- **format**: This sub-directory stores definitions of format HDIs, allowing upper-layer services to multiplex and demultiplex media files. For details, see the [readme](format/README.md) file in the **format** sub-directory.
20- **input**: This sub-directory stores definitions and implementation code of input HDIs, allowing upper-layer input services to perform operations for input devices, including managing input devices, controlling service flows, and reporting input events. For details, see the [readme](input/README.md) file in the **input** sub-directory.
21- **sensor**: This sub-directory stores definitions and implementation code of sensor HDIs, including obtaining sensor information, enabling or disabling a sensor, subscribing to or unsubscribing from sensor data, and setting sensor options. For details, see the [readme](sensor/README.md) file in the **sensor** sub-directory.
22- **wlan**: This sub-directory stores definitions and implementation code of WLAN HDIs, including creating and stopping a channel between the HAL and the WLAN driver and obtaining the WLAN features supported by the device. For details, see the [readme](wlan/README.md) file in the **wlan** sub-directory.
23
24## Repositories Involved<a name="section1371113476307"></a>
25
26[Driver subsystem](https://gitee.com/openharmony/docs/blob/master/en/readme/driver-subsystem.md)
27
28[drivers\_framework](https://gitee.com/openharmony/drivers_framework/blob/master/README.md)
29
30[drivers\_adapter](https://gitee.com/openharmony/drivers_adapter/blob/master/README.md)
31
32[drivers\_adapter\_khdf\_linux](https://gitee.com/openharmony/drivers_adapter_khdf_linux/blob/master/README.md)
33
34[drivers\_peripheral](https://gitee.com/openharmony/drivers_peripheral)
35
36
37