Gocator API

- Home
- Types
- Files

All Classes Files Functions Variables Typedefs Macros Modules Pages
GoAccelSensorPortAlloc.h
Go to the documentation of this file.
1 /**
2 * @file GoAccelSensorPortAlloc.h
3 * @brief Declares the GoAccelSensorPortAlloc class.
4 *
5 * @internal
6 * Copyright (C) 2016-2018 by LMI Technologies Inc.
7 * Licensed under the MIT License.
8 * Redistributed files must retain the above copyright notice.
9 */
10 #ifndef GO_ACCEL_SENSOR_PORT_ALLOC_H
11 #define GO_ACCEL_SENSOR_PORT_ALLOC_H
12
13 #include <GoSdk/GoSdkDef.h>
14
15 typedef kObject GoAccelSensorPortAlloc;
16
17 typedef struct GoAccelSensorPortAllocPorts
18 {
19 k16u controlPort;
20 k16u upgradePort;
21 k16u healthPort;
22 k16u privateDataPort;
23 k16u publicDataPort;
24 k16u webPort;
25 } GoAccelSensorPortAllocPorts;
26
27 GoFx(kStatus) GoAccelSensorPortAlloc_Construct(GoAccelSensorPortAlloc* portAlloc, kAlloc allocator);
28
29 GoFx(kStatus) GoAccelSensorPortAlloc_SetPortRange(GoAccelSensorPortAlloc portAlloc, k16u startPort, k16u endPort);
30 GoFx(kStatus) GoAccelSensorPortAlloc_GetPortRange(GoAccelSensorPortAlloc portAlloc, k16u* startPort, k16u* endPort);
31 GoFx(kStatus) GoAccelSensorPortAlloc_GetPortRangeLimits(GoAccelSensorPortAlloc portAlloc, k16u* startLimit, k16u* endLimit, k16u* minNumPorts);
32
33 GoFx(kStatus) GoAccelSensorPortAlloc_ProcessInputSensorPorts(GoAccelSensorPortAlloc portAlloc, k32u sensorId, GoAccelSensorPortAllocPorts* sensorPorts);
34
35 GoFx(kStatus) GoAccelSensorPortAlloc_RemoveAllocatedPorts(GoAccelSensorPortAlloc portAlloc, k32u sensorId, GoAccelSensorPortAllocPorts* sensorPorts);
36 GoFx(kStatus) GoAccelSensorPortAlloc_StoreAllocatedPorts(GoAccelSensorPortAlloc portAlloc, k32u sensorId, GoAccelSensorPortAllocPorts* sensorPorts);
37 GoFx(kStatus) GoAccelSensorPortAlloc_PurgeAllAllocatedPorts(GoAccelSensorPortAlloc portAlloc);
38
39 #include <GoSdk/Internal/GoAccelSensorPortAlloc.x.h>
40
41 #endif // GO_ACCEL_SENSOR_PORT_ALLOC_H
k32u
k16u
kAlloc
GoSdkDef.h
Essential SDK declarations.
kObject
kStatus