• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1 /*
2  * Copyright (c) 2023 Huawei Device Co., Ltd.
3  *
4  * HDF is dual licensed: you can use it either under the terms of
5  * the GPL, or the BSD license, at your option.
6  * See the LICENSE file in the root of this repository for complete details.
7  */
8 
9 /**
10  * @addtogroup Core
11  * @{
12  *
13  * @brief Provides Hardware Driver Foundation (HDF) APIs.
14  *
15  * The HDF implements driver framework capabilities such as driver loading, service management,
16  * and driver message model. You can develop drivers based on the HDF.
17  *
18  * @since 1.0
19  */
20 
21 /**
22  * @file hdf_device_class.h
23  *
24  * @brief Defines device types by service. Service modules can listen for services of the specific device type.
25  *
26  * @since 1.0
27  */
28 
29 #ifndef HDF_DEVICE_CLASS_H
30 #define HDF_DEVICE_CLASS_H
31 
32 /**
33  * @brief Enumerates the driver device types.
34  */
35 typedef enum {
36     DEVICE_CLASS_DEFAULT  = 0x1 << 0,    /** Default device type */
37     DEVICE_CLASS_PLAT     = 0x1 << 1,    /** Platform device */
38     DEVICE_CLASS_SENSOR   = 0x1 << 2,    /** Sensor device */
39     DEVICE_CLASS_INPUT    = 0x1 << 3,    /** Input device */
40     DEVICE_CLASS_DISPLAY  = 0x1 << 4,    /** Display device */
41     DEVICE_CLASS_AUDIO    = 0x1 << 5,    /** Audio device */
42     DEVICE_CLASS_CAMERA   = 0x1 << 6,    /** Camera device */
43     DEVICE_CLASS_USB      = 0x1 << 7,    /** USB device */
44     DEVICE_CLASS_USERAUTH = 0x1 << 8,    /** User authentication device */
45     DEVICE_CLASS_MAX      = 0x1 << 9,    /** Maximum value of the device class */
46 } DeviceClass;
47 
48 #endif /* HDF_DEVICE_CLASS_H */
49 /** @} */
50