• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1 /*
2  * Copyright (c) 2022 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 #ifndef CAN_SERVICE_H
10 #define CAN_SERVICE_H
11 
12 #include "hdf_device_desc.h"
13 
14 #ifdef __cplusplus
15 extern "C" {
16 #endif /* __cplusplus */
17 
18 enum CanIoCmd {
19     CAN_IO_READ = 0,
20     CAN_IO_WRITE = 1,
21     CAN_IO_SETCFG = 2,
22     CAN_IO_GETCFG = 3,
23 };
24 
25 int32_t CanServiceBind(struct HdfDeviceObject *device);
26 
27 void CanServiceRelease(struct HdfDeviceObject *device);
28 
29 #ifdef __cplusplus
30 }
31 #endif /* __cplusplus */
32 
33 #endif /* CAN_SERVICE_H */
34