-
Notifications
You must be signed in to change notification settings - Fork 1
/
softPiMacros.h
152 lines (149 loc) · 6 KB
/
softPiMacros.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
#ifndef _SOFT_PI_MACROS_H
#define _SOFT_PI_MACROS_H
#define gpioInitialise sim_gpioInitialise
#define gpioTerminate sim_gpioTerminate
#define gpioSetMode sim_gpioSetMode
#define gpioGetMode sim_gpioGetMode
#define gpioSetPullUpDown sim_gpioSetPullUpDown
#define gpioRead sim_gpioRead
#define gpioWrite sim_gpioWrite
#define gpioPWM sim_gpioPWM
#define gpioGetPWMdutycycle sim_gpioGetPWMdutycycle
#define gpioSetPWMrange sim_gpioSetPWMrange
#define gpioGetPWMrange sim_gpioGetPWMrange
#define gpioGetPWMrealRange sim_gpioGetPWMrealRange
#define gpioSetPWMfrequency sim_gpioSetPWMfrequency
#define gpioGetPWMfrequency sim_gpioGetPWMfrequency
#define gpioServo sim_gpioServo
#define gpioGetServoPulsewidth sim_gpioGetServoPulsewidth
#define gpioSetAlertFunc sim_gpioSetAlertFunc
#define gpioNotifyOpen sim_gpioNotifyOpen
#define gpioNotifyOpenWithSize sim_gpioNotifyOpenWithSize
#define gpioNotifyBegin sim_gpioNotifyBegin
#define gpioNotifyPause sim_gpioNotifyPause
#define gpioNotifyClose sim_gpioNotifyClose
#define gpioWaveClear sim_gpioWaveClear
#define gpioWaveAddNew sim_gpioWaveAddNew
#define gpioWaveAddGeneric sim_gpioWaveAddGeneric
#define gpioWaveCreate sim_gpioWaveCreate
#define gpioWaveDelete sim_gpioWaveDelete
#define gpioWaveTxSend sim_gpioWaveTxSend
#define gpioWaveChain sim_gpioWaveChain
#define gpioWaveTxAt sim_gpioWaveTxAt
#define gpioWaveTxBusy sim_gpioWaveTxBusy
#define gpioWaveTxStop sim_gpioWaveTxStop
#define gpioWaveGetMicros sim_gpioWaveGetMicros
#define gpioWaveGetHighMicros sim_gpioWaveGetHighMicros
#define gpioWaveGetMaxMicros sim_gpioWaveGetMaxMicros
#define gpioWaveGetPulses sim_gpioWaveGetPulses
#define gpioWaveGetHighPulses sim_gpioWaveGetHighPulses
#define gpioWaveGetMaxPulses sim_gpioWaveGetMaxPulses
#define gpioWaveGetCbs sim_gpioWaveGetCbs
#define gpioWaveGetHighCbs sim_gpioWaveGetHighCbs
#define gpioWaveGetMaxCbs sim_gpioWaveGetMaxCbs
#define gpioSerialReadOpen sim_gpioSerialReadOpen
#define gpioSerialReadInvert sim_gpioSerialReadInvert
#define gpioSerialRead sim_gpioSerialRead
#define gpioSerialReadClose sim_gpioSerialReadClose
#define i2cOpen sim_i2cOpen
#define i2cClose sim_i2cClose
#define i2cWriteQuick sim_i2cWriteQuick
#define i2cWriteByte sim_i2cWriteByte
#define i2cReadByte sim_i2cReadByte
#define i2cWriteByteData sim_i2cWriteByteData
#define i2cWriteWordData sim_i2cWriteWordData
#define i2cReadByteData sim_i2cReadByteData
#define i2cReadWordData sim_i2cReadWordData
#define i2cProcessCall sim_i2cProcessCall
#define i2cReadBlockData sim_i2cReadBlockData
#define i2cReadDevice sim_i2cReadDevice
#define i2cWriteDevice sim_i2cWriteDevice
#define i2cSwitchCombined sim_i2cSwitchCombined
#define i2cSegments sim_i2cSegments
#define bbI2COpen sim_bbI2COpen
#define bbI2CClose sim_bbI2CClose
#define bscXfer sim_bscXfer
#define bbSPIClose sim_bbSPIClose
#define spiOpen sim_spiOpen
#define spiClose sim_spiClose
#define spiRead sim_spiRead
#define spiWrite sim_spiWrite
#define spiXfer sim_spiXfer
#define serOpen sim_serOpen
#define serClose sim_serClose
#define serWriteByte sim_serWriteByte
#define serReadByte sim_serReadByte
#define serWrite sim_serWrite
#define serRead sim_serRead
#define serDataAvailable sim_serDataAvailable
#define gpioTrigger sim_gpioTrigger
#define gpioSetWatchdog sim_gpioSetWatchdog
#define gpioNoiseFilter sim_gpioNoiseFilter
#define gpioGlitchFilter sim_gpioGlitchFilter
#define gpioSetGetSamplesFunc sim_gpioSetGetSamplesFunc
#define gpioSetTimerFunc sim_gpioSetTimerFunc
#define gpioStartThread sim_gpioStartThread
#define gpioStopThread sim_gpioStopThread
#define gpioStoreScript sim_gpioStoreScript
#define gpioRunScript sim_gpioRunScript
#define gpioUpdateScript sim_gpioUpdateScript
#define gpioScriptStatus sim_gpioScriptStatus
#define gpioStopScript sim_gpioStopScript
#define gpioDeleteScript sim_gpioDeleteScript
#define gpioSetSignalFunc sim_gpioSetSignalFunc
#define gpioRead_Bits_0_31 sim_gpioRead_Bits_0_31
#define gpioRead_Bits_32_53 sim_gpioRead_Bits_32_53
#define gpioWrite_Bits_0_31_Clear sim_gpioWrite_Bits_0_31_Clear
#define gpioWrite_Bits_32_53_Clear sim_gpioWrite_Bits_32_53_Clear
#define gpioWrite_Bits_0_31_Set sim_gpioWrite_Bits_0_31_Set
#define gpioWrite_Bits_32_53_Set sim_gpioWrite_Bits_32_53_Set
#define gpioHardwareClock sim_gpioHardwareClock
#define gpioHardwarePWM sim_gpioHardwarePWM
#define gpioTime sim_gpioTime
#define gpioSleep sim_gpioSleep
#define gpioDelay sim_gpioDelay
#define gpioTick sim_gpioTick
#define gpioHardwareRevision sim_gpioHardwareRevision
#define gpioVersion sim_gpioVersion
#define gpioGetPad sim_gpioGetPad
#define gpioSetPad sim_gpioSetPad
#define eventMonitor sim_eventMonitor
#define eventSetFunc sim_eventSetFunc
#define eventSetFuncEx sim_eventSetFuncEx
#define eventTrigger sim_eventTrigger
#define shell sim_shell
#define fileOpen sim_fileOpen
#define fileClose sim_fileClose
#define fileWrite sim_fileWrite
#define fileRead sim_fileRead
#define fileSeek sim_fileSeek
#define fileList sim_fileList
#define gpioCfgBufferSize sim_gpioCfgBufferSize
#define gpioCfgDMAchannel sim_gpioCfgDMAchannel
#define gpioCfgDMAchannels sim_gpioCfgDMAchannels
#define gpioCfgPermissions sim_gpioCfgPermissions
#define gpioCfgSocketPort sim_gpioCfgSocketPort
#define gpioCfgInterfaces sim_gpioCfgInterfaces
#define gpioCfgMemAlloc sim_gpioCfgMemAlloc
#define gpioCfgNetAddr sim_gpioCfgNetAddr
#define gpioCfgInternals sim_gpioCfgInternals
#define gpioCfgGetInternals sim_gpioCfgGetInternals
#define gpioCfgSetInternals sim_gpioCfgSetInternals
#define gpioCustom1 sim_gpioCustom1
#define rawWaveAddGeneric sim_rawWaveAddGeneric
#define rawWaveCB sim_rawWaveCB
#define rawWaveCBAdr sim_rawWaveCBAdr
#define rawWaveGetOOL sim_rawWaveGetOOL
#define rawWaveSetOOL sim_rawWaveSetOOL
#define rawWaveGetOut sim_rawWaveGetOut
#define rawWaveSetOut sim_rawWaveSetOut
#define rawWaveGetIn sim_rawWaveGetIn
#define rawWaveSetIn sim_rawWaveSetIn
#define rawWaveInfo sim_rawWaveInfo
#define getBitInBytes sim_getBitInBytes
#define putBitInBytes sim_putBitInBytes
#define time_time sim_time_time
#define time_sleep sim_time_sleep
#define rawDumpWave sim_rawDumpWave
#define rawDumpScript sim_rawDumpScript
#endif