OpenEL 3.0.0

openEL_sensor.h
Go to the documentation of this file.
1
12 /*
13
14 Copyright (c) 2017,2018 Japan Embedded Systems Technology Association(JASA)
15 All rights reserved.
16
17 Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met:
18
19 Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer.
20 Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution.
21 Neither the name of the Association nor the names of its contributors may be used to endorse or promote products derived from this software without specific prior written permission.
22
23 THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
24 */
25
26 #ifndef OPNEEL_SENSOR_H_
27 #define OPNEEL_SENSOR_H_
28
29 #define ELSENSOR_PROPERTY (0x0020)
30
32 typedef struct elSensorFncTblSt {
33 /* 0x00 */ enum ReturnCode (*pFncInit)();
34 /* 0x01 */ enum ReturnCode (*pFncReInit)();
35 /* 0x02 */ enum ReturnCode (*pFncFinalize)();
36 /* 0x03 */ enum ReturnCode (*pFncAddObserver)();
37 /* 0x04 */ enum ReturnCode (*pFncRemoveObserver)();
38 /* 0x05 */ enum ReturnCode (*pFncGetProperty)();
39 /* 0x06 */ enum ReturnCode (*pFncGetTime)();
40 /* 0x07 */ enum ReturnCode (*pFncDummy07)();
42 /* 0x08 */ enum ReturnCode (*pFncDummy08)();
43 /* 0x09 */ enum ReturnCode (*pFncDummy09)();
44 /* 0x0A */ enum ReturnCode (*pFncDummy0A)();
45 /* 0x0B */ enum ReturnCode (*pFncDummy0B)();
46 /* 0x0C */ enum ReturnCode (*pFncDummy0C)();
47 /* 0x0D */ enum ReturnCode (*pFncDummy0D)();
48 /* 0x0E */ enum ReturnCode (*pFncDummy0E)();
49 /* 0x0F */ enum ReturnCode (*pFncDummy0F)();
51 /* 0x10 */ enum ReturnCode (*pFncGetValue)(HALCOMPONENT_T **halComponent, halfloat **list);
52 /* 0x11 */ enum ReturnCode (*pFncGetTimedValue)(HALCOMPONENT_T **halComponent, halfloat **list, int32_t **timer);
53 /* 0x12 */ enum ReturnCode (*pFncSetUnit)(char units);
54 /* 0x13 */ enum ReturnCode (*pFncGetUnit)(char *units);
55 /* 0x14 */ enum ReturnCode (*pFncDummy14)();
56 /* 0x15 */ enum ReturnCode (*pFncDummy15)();
57 /* 0x16 */ enum ReturnCode (*pFncDummy16)();
58 /* 0x17 */ enum ReturnCode (*pFncDummy17)();
60 /* 0x18 */ enum ReturnCode (*pFncSetReset)();
61 /* 0x19 */ enum ReturnCode (*pFncStart)();
62 /* 0x1A */ enum ReturnCode (*pFncStop)();
63 /* 0x1B */ enum ReturnCode (*pFncDummy1B)();
64 /* 0x1C */ enum ReturnCode (*pFncDummy1C)();
65 /* 0x1D */ enum ReturnCode (*pFncDummy1D)();
66 /* 0x1E */ enum ReturnCode (*pFncDummy1E)();
67 /* 0x1F */ enum ReturnCode (*pFncDummy1F)();
68 } EL_SENSOR_FNC_TBL_T;
69
70 #endif /* OPNEEL_SENSOR_H_ */
elSensorFncTblSt::pFncDummy0C
enum ReturnCode(* pFncDummy0C)()
Definition: openEL_sensor.h:46
elSensorFncTblSt::pFncDummy1F
enum ReturnCode(* pFncDummy1F)()
Definition: openEL_sensor.h:67
elSensorFncTblSt::pFncGetProperty
enum ReturnCode(* pFncGetProperty)()
Definition: openEL_sensor.h:38
elSensorFncTblSt::pFncDummy0D
enum ReturnCode(* pFncDummy0D)()
Definition: openEL_sensor.h:47
elSensorFncTblSt::pFncDummy15
enum ReturnCode(* pFncDummy15)()
Definition: openEL_sensor.h:56
elSensorFncTblSt::pFncReInit
enum ReturnCode(* pFncReInit)()
Definition: openEL_sensor.h:34
elSensorFncTblSt::pFncDummy07
enum ReturnCode(* pFncDummy07)()
Definition: openEL_sensor.h:40
elSensorFncTblSt::pFncDummy14
enum ReturnCode(* pFncDummy14)()
Definition: openEL_sensor.h:55
elSensorFncTblSt::pFncSetUnit
enum ReturnCode(* pFncSetUnit)(char units)
Definition: openEL_sensor.h:53
elSensorFncTblSt::pFncGetUnit
enum ReturnCode(* pFncGetUnit)(char *units)
Definition: openEL_sensor.h:54
elSensorFncTblSt::pFncDummy08
enum ReturnCode(* pFncDummy08)()
Definition: openEL_sensor.h:42
ReturnCode
ReturnCode
Definition: openEL.h:44
elSensorFncTblSt::pFncDummy0A
enum ReturnCode(* pFncDummy0A)()
Definition: openEL_sensor.h:44
elSensorFncTblSt::pFncGetValue
enum ReturnCode(* pFncGetValue)(HALCOMPONENT_T **halComponent, halfloat **list)
Definition: openEL_sensor.h:51
elSensorFncTblSt::pFncDummy0F
enum ReturnCode(* pFncDummy0F)()
Definition: openEL_sensor.h:49
elSensorFncTblSt::pFncDummy09
enum ReturnCode(* pFncDummy09)()
Definition: openEL_sensor.h:43
elSensorFncTblSt::pFncAddObserver
enum ReturnCode(* pFncAddObserver)()
Definition: openEL_sensor.h:36
halfloat
float32_t halfloat
Definition: openEL.h:53
elSensorFncTblSt::pFncGetTime
enum ReturnCode(* pFncGetTime)()
Definition: openEL_sensor.h:39
elSensorFncTblSt
Definition: openEL_sensor.h:32
EL_SENSOR_FNC_TBL_T
struct elSensorFncTblSt EL_SENSOR_FNC_TBL_T
elSensorFncTblSt::pFncGetTimedValue
enum ReturnCode(* pFncGetTimedValue)(HALCOMPONENT_T **halComponent, halfloat **list, int32_t **timer)
Definition: openEL_sensor.h:52
elSensorFncTblSt::pFncDummy0E
enum ReturnCode(* pFncDummy0E)()
Definition: openEL_sensor.h:48
HalComponent
Definition: openEL.h:162
elSensorFncTblSt::pFncStart
enum ReturnCode(* pFncStart)()
Definition: openEL_sensor.h:61
elSensorFncTblSt::pFncInit
enum ReturnCode(* pFncInit)()
Definition: openEL_sensor.h:33
elSensorFncTblSt::pFncDummy1E
enum ReturnCode(* pFncDummy1E)()
Definition: openEL_sensor.h:66
elSensorFncTblSt::pFncDummy17
enum ReturnCode(* pFncDummy17)()
Definition: openEL_sensor.h:58
elSensorFncTblSt::pFncStop
enum ReturnCode(* pFncStop)()
Definition: openEL_sensor.h:62
elSensorFncTblSt::pFncDummy0B
enum ReturnCode(* pFncDummy0B)()
Definition: openEL_sensor.h:45
elSensorFncTblSt::pFncDummy1D
enum ReturnCode(* pFncDummy1D)()
Definition: openEL_sensor.h:65
elSensorFncTblSt::pFncDummy1C
enum ReturnCode(* pFncDummy1C)()
Definition: openEL_sensor.h:64
elSensorFncTblSt::pFncSetReset
enum ReturnCode(* pFncSetReset)()
Definition: openEL_sensor.h:60
elSensorFncTblSt::pFncRemoveObserver
enum ReturnCode(* pFncRemoveObserver)()
Definition: openEL_sensor.h:37
elSensorFncTblSt::pFncDummy1B
enum ReturnCode(* pFncDummy1B)()
Definition: openEL_sensor.h:63
elSensorFncTblSt::pFncDummy16
enum ReturnCode(* pFncDummy16)()
Definition: openEL_sensor.h:57
elSensorFncTblSt::pFncFinalize
enum ReturnCode(* pFncFinalize)()
Definition: openEL_sensor.h:35