-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathfirmware_offsets.txt
481 lines (479 loc) · 20.2 KB
/
firmware_offsets.txt
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
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
Firmware Base Address 0x037fc000
# It is possible that fields starting with 0x037fc... are actually functions
# Needs testing
vexos+displayOffsetX 0x000153e8
vexos+displayOffsetY 0x000153ec
vexos+critSecFlags 0x037fcfb0
vexos+userData1 0x037fcfc8
vexos+userData2 0x037fcfcc
vexos+userData3 0x037fcfd0
vexos+userData4 0x037fcfd4
vexos+stdDataAddr 0x037fcfa4
vexos+stdDataSize 0x037fcfa8
vexos+stdDataPtr 0x037fcfa0
vexos+taskMain 0x000102d0
vexos+lastTimeSleep 0x00015400
vexos+scratchMemoryPtrUnk 0x037fc018
vexos+impurePtr 0x0001000c
vexos+stdlibVersion1 0x00010008
vexos+systemVersion 0x037fd000
vexos+systemVersion2 0x037fd004
vexos+sdkVersion 0x1020000
vexos+vexosVersion 0x037fd008
vexos+cpuVersion 0x037fd00c
vexos+date 0x0384b11b
vexStdlibMismatchError 0x010
# Talk to James!
vexScratchMemoryPtr 0x01c
vexPrivateApiDisable 0x020
vexPrivateApiEnable 0x024
vexTaskAdd 0x028
vexTaskAddWithPriority 0x02c
vexTaskAddSimple 0x030
vexTaskAddSimpleWithPriority 0x034
vexTaskStop 0x038
vexTaskSuspend 0x03c
vexTaskResume 0x040
vexTaskSuspendCurrent 0x044
vexTaskResumeCurrent 0x048
vexTaskProgramSuspend 0x04c
vexTaskProgramResume 0x050
vexTaskPriorityGet 0x054
vexTaskPrioritySet 0x058
vexTasksRun 0x05c
vexTaskYield 0x060
vexTaskCheckTimeslice 0x064
vexTaskGetIndex 0x068
vexTaskSleep 0x06c
vexSemaphoreInit 0x070
vexSemaphoreLock 0x074
vexSemaphoreUnlock 0x078
vexSemaphoreGetOwner 0x07c
vexTasksDump 0x080
vexTaskGetCallbackAndId 0x084
vexTaskGetCallback 0x084
vexTaskWaitForExitWithId 0x088
vexTaskWaitForExit 0x088
vexTaskStateGet 0x08c
vexTaskGetTaskIndex 0x090
vexTaskStopAll 0x094
vexTaskStopAllUser 0x098
vexTaskRemoveAllUser 0x09c
vexEventBroadcastAndWait 0x0a0
vexEventBroadcast 0x0a4
vexEventAdd 0x0a8
vexEventUserIndexGet 0x0ac
vexEventAddWithArg 0x0b0
vexEventsCleanup 0x0b4
vexEventsDump 0x0b8
vexEventGetArg 0x0bc
vexEventsGetMax 0x0c0
vexEventsGetCount 0x0c4
vexBreak 0x0c8
vexTaskBreakpointSet 0x0cc
vexTaskBreakpointDump 0x0d0
vex_printf 0x0f0
vexDebug 0x0f0
vex_sprintf 0x0f4
vex_vsprintf 0x0f4
vex_snprintf 0x0f8
vexSystemTimeGet 0x118
vexGettime 0x11c
vexGetdate 0x120
vex_vsnprintf 0x124
vexSystemMemoryDump 0x124
vexSystemDigitalIO 0x128
vexSystemStartupOptions 0x12c
vexSystemExitRequest 0x130
vexSystemHighResTimeGet 0x134
vexSystemPowerupTimeGet 0x138
vexSystemLinkAddrGet 0x13c
vexTaskHardwareConcurrency 0x140
vexTaskCompletionIdSet 0x144
vexTaskStackSizeGet 0x148
vexTaskStackDefaultSizeGet 0x14c
vexTaskStackUseGet 0x150
vexTaskStackTopGet 0x154
vexTaskFree 0x158
vexTaskGetArgs 0x15c
vexTaskSetArgs 0x160
vexSystemTimerGet 0x168
vexSystemTimerEnable 0x16c
vexSystemTimerDisable 0x170
vexSystemUsbStatus 0x174
vexDevicesGetNumber 0x190
vexDevicesGetNumberByType 0x194
vexDevicesGet 0x198
vexDeviceGetByIndex 0x19c
vexDeviceGetStatus 0x1a0
vexControllerGet 0x1a4
vexControllerConnectionStatusGet 0x1a8
vexControllerTextSet 0x1ac
vexDeviceGetTimestamp 0x1b0
vexDeviceButtonStateGet 0x1b4
vexDeviceTypeGetByIndex 0x1b8
vexDeviceTypeSetByIndex 0x1bc
vexDeviceValueGetByIndex 0x1c0
vexDeviceValueSetByIndex 0x1c4
vexDeviceDatarateSet 0x1c8
vexDeviceTimerSet 0x1cc
vexDeviceTimerSetWithArg 0x1d0
vexDeviceTimerDump 0x1d4
vexDeviceFlagsGetByIndex 0x1d8
vexDeviceLedSet 0x1e0
vexDeviceLedRgbSet 0x1e4
vexDeviceLedGet 0x1e8
vexDeviceLedRgbGet 0x1ec
vexDeviceAdiPortConfigSet 0x208
vexDeviceAdiPortConfigGet 0x20c
vexDeviceAdiValueSet 0x210
vexDeviceAdiValueGet 0x214
vexDeviceAdiVoltageGet 0x218
vexDeviceBumperGet 0x230
vexDeviceGyroReset 0x258
vexDeviceGyroHeadingGet 0x25c
vexDeviceGyroDegreesGet 0x260
vexDeviceSonarValueGet 0x280
vexDeviceGenericValueGet 0x2a8
vexDeviceMotorVelocitySet 0x2d0
vexDeviceMotorVelocityGet 0x2d4
vexDeviceMotorActualVelocityGet 0x2d8
vexDeviceMotorDirectionGet 0x2dc
vexDeviceMotorModeSet 0x2e0
vexDeviceMotorModeGet 0x2e4
vexDeviceMotorPwmSet 0x2e8
vexDeviceMotorPwmGet 0x2ec
vexDeviceMotorCurrentLimitSet 0x2f0
vexDeviceMotorCurrentLimitGet 0x2f4
vexDeviceMotorCurrentGet 0x2f8
vexDeviceMotorPowerGet 0x2fc
vexDeviceMotorTorqueGet 0x300
vexDeviceMotorEfficiencyGet 0x304
vexDeviceMotorTemperatureGet 0x308
vexDeviceMotorOverTempFlagGet 0x30c
vexDeviceMotorCurrentLimitFlagGet 0x310
vexDeviceMotorZeroVelocityFlagGet 0x314
vexDeviceMotorZeroPositionFlagGet 0x318
vexDeviceMotorReverseFlagSet 0x31c
vexDeviceMotorReverseFlagGet 0x320
vexDeviceMotorEncoderUnitsSet 0x324
vexDeviceMotorEncoderUnitsGet 0x328
vexDeviceMotorBrakeModeSet 0x32c
vexDeviceMotorBrakeModeGet 0x330
vexDeviceMotorPositionSet 0x334
vexDeviceMotorPositionGet 0x338
vexDeviceMotorPositionRawGet 0x33c
vexDeviceMotorPositionReset 0x340
vexDeviceMotorTargetGet 0x344
vexDeviceMotorServoTargetSet 0x348
vexDeviceMotorAbsoluteTargetSet 0x34c
vexDeviceMotorRelativeTargetSet 0x350
vexDeviceMotorFaultsGet 0x354
vexDeviceMotorFlagsGet 0x358
vexDeviceMotorVoltageSet 0x35c
vexDeviceMotorVoltageGet 0x360
vexDeviceMotorGearingSet 0x364
vexDeviceMotorGearingGet 0x368
vexDeviceMotorVoltageLimitSet 0x36c
vexDeviceMotorVoltageLimitGet 0x370
vexDeviceMotorVelocityUpdate 0x374
vexDeviceMotorPositionPidSet 0x378
vexDeviceMotorVelocityPidSet 0x37c
vexDeviceMotorExternalProfileSet 0x380
vexDeviceVisionModeSet 0x398
vexDeviceVisionModeGet 0x39c
vexDeviceVisionObjectCountGet 0x3a0
vexDeviceVisionObjectGet 0x3a4
vexDeviceVisionSignatureSet 0x3a8
vexDeviceVisionSignatureGet 0x3ac
vexDeviceVisionBrightnessSet 0x3b0
vexDeviceVisionBrightnessGet 0x3b4
vexDeviceVisionWhiteBalanceModeSet 0x3b8
vexDeviceVisionWhiteBalanceModeGet 0x3bc
vexDeviceVisionWhiteBalanceSet 0x3c0
vexDeviceVisionWhiteBalanceGet 0x3c4
vexDeviceVisionLedModeSet 0x3c8
vexDeviceVisionLedModeGet 0x3cc
vexDeviceVisionLedBrigntnessSet 0x3d0
vexDeviceVisionLedBrigntnessGet 0x3d4
vexDeviceVisionLedColorSet 0x3d8
vexDeviceVisionLedColorGet 0x3dc
vexDeviceVisionWifiModeSet 0x3e0
vexDeviceVisionWifiModeGet 0x3e4
vexDeviceImuReset 0x410
vexDeviceImuHeadingGet 0x414
vexDeviceImuDegreesGet 0x418
vexDeviceImuQuaternionGet 0x41c
vexDeviceImuAttitudeGet 0x420
vexDeviceImuRawGyroGet 0x424
vexDeviceImuRawAccelGet 0x428
vexDeviceImuStatusGet 0x42c
vexDeviceImuTemperatureGet 0x430
vexDeviceImuDebugGet 0x434
vexDeviceImuModeSet 0x438
vexDeviceImuModeGet 0x43c
vexDeviceImuCollisionDataGet 0x440
vexDeviceImuDataRateSet 0x444
vexDeviceRadioUserDataReceive 0x460
vexDeviceRadioModeSet 0x464
vexDeviceAbsEncReset 0x488
vexDeviceAbsEncPositionSet 0x48c
vexDeviceAbsEncPositionGet 0x490
vexDeviceAbsEncVelocityGet 0x494
vexDeviceAbsEncAngleGet 0x498
vexDeviceAbsEncReverseFlagSet 0x49c
vexDeviceAbsEncReverseFlagGet 0x4a0
vexDeviceAbsEncStatusGet 0x4a4
vexDeviceAbsEncTemperatureGet 0x4a8
vexDeviceAbsEncDebugGet 0x4ac
vexDeviceAbsEncModeSet 0x4b0
vexDeviceAbsEncModeGet 0x4b4
vexDeviceAbsEncOffsetSet 0x4b8
vexDeviceAbsEncOffsetGet 0x4bc
vexDeviceAbsEncDataRateSet 0x4c0
vexDeviceRangeValueGet 0x4d8
vexDeviceDistanceDistanceGet 0x500
vexDeviceDistanceConfidenceGet 0x504
vexDeviceDistanceStatusGet 0x508
vexDeviceDistanceDebugGet 0x50c
vexDeviceDistanceModeSet 0x510
vexDeviceDistanceModeGet 0x514
vexDeviceDistanceObjectSizeGet 0x518
vexDeviceDistanceObjectVelocityGet 0x51c
vexDeviceOpticalHueGet 0x528
vexDeviceOpticalSatGet 0x52c
vexDeviceOpticalBrightnessGet 0x530
vexDeviceOpticalProximityGet 0x534
vexDeviceOpticalRgbGet 0x538
vexDeviceOpticalLedPwmSet 0x53c
vexDeviceOpticalLedPwmGet 0x540
vexDeviceOpticalStatusGet 0x544
vexDeviceOpticalRawGet 0x548
vexDeviceOpticalDebugGet 0x54c
vexDeviceOpticalModeSet 0x550
vexDeviceOpticalModeGet 0x554
vexDeviceOpticalGestureGet 0x558
vexDeviceOpticalGestureEnable 0x55c
vexDeviceOpticalGestureDisable 0x560
vexDeviceOpticalProximityThreshold 0x564
vexDeviceOpticalGainSet 0x568
vexDeviceOpticalMatrixSet 0x56c
vexDeviceOpticalMatrixGet 0x570
vexDeviceMagnetPowerSet 0x578
vexDeviceMagnetPowerGet 0x57c
vexDeviceMagnetPickup 0x580
vexDeviceMagnetDrop 0x584
vexDeviceMagnetTemperatureGet 0x588
vexDeviceMagnetCurrentGet 0x58c
vexDeviceMagnetStatusGet 0x590
vexDeviceMagnetDebugGet 0x594
vexDeviceMagnetModeSet 0x598
vexDeviceMagnetModeGet 0x59c
vexDeviceGpsReset 0x5c8
vexDeviceGpsHeadingGet 0x5cc
vexDeviceGpsDegreesGet 0x5d0
vexDeviceGpsQuaternionGet 0x5d4
vexDeviceGpsAttitudeGet 0x5d8
vexDeviceGpsRawGyroGet 0x5dc
vexDeviceGpsRawAccelGet 0x5e0
vexDeviceGpsStatusGet 0x5e4
vexDeviceGpsTemperatureGet 0x5e8
vexDeviceGpsDebugGet 0x5ec
vexDeviceGpsModeSet 0x5f0
vexDeviceGpsModeGet 0x5f4
vexDeviceGpsDataRateSet 0x5f8
vexDeviceGpsOriginSet 0x5fc
vexDeviceGpsOriginGet 0x600
vexDeviceGpsRotationSet 0x604
vexDeviceGpsRotationGet 0x608
vexDeviceGpsInitialPositionSet 0x60c
vexDeviceGpsTestDataSet 0x610
vexDeviceGpsErrorGet 0x614
vexDisplayForegroundColor 0x640
vexDisplayBackgroundColor 0x644
vexDisplayErase 0x648
vexDisplayScroll 0x64c
vexDisplayScrollRect 0x650
vexDisplayCopyRect 0x654
vexDisplayPixelSet 0x658
vexDisplayPixelClear 0x65c
vexDisplayLineDraw 0x660
vexDisplayLineClear 0x664
vexDisplayRectDraw 0x668
vexDisplayRectClear 0x66c
vexDisplayRectFill 0x670
vexDisplayCircleDraw 0x674
vexDisplayCircleClear 0x678
vexDisplayCircleFill 0x67c
vexDisplayVPrintf 0x680
vexDisplayPrintf 0x680
vexDisplayVString 0x684
vexDisplayString 0x684
vexDisplayVStringAt 0x688
vexDisplayStringAt 0x688
vexDisplayVBigString 0x68c
vexDisplayBigString 0x68c
vexDisplayVBigStringAt 0x690
vexDisplayBigStringAt 0x690
vexDisplayVCenteredString 0x694
vexDisplayCenteredString 0x694
vexDisplayVBigCenteredString 0x698
vexDisplayBigCenteredString 0x698
vexDisplayTextSmoothing 0x69c
vexDisplayTextReference 0x6a0
vexDisplayScreenGrab 0x6a4
vexDisplayTextSize 0x6a8
vexDisplayTextSpacing 0x6ac
vexDisplayVSmallStringAt 0x6b0
vexDisplaySmallStringAt 0x6b0
vexDisplayFontNamedSet 0x6b4
vexDisplayForegroundColorGet 0x6b8
vexDisplayBackgroundColorGet 0x6bc
vexDisplayStringWidthGet 0x6c0
vexDisplayStringHeightGet 0x6c4
vexDisplayPenSizeSet 0x6c8
vexDisplayPenSizeGet 0x6cc
vexDisplayFontCustomSet 0x6d0
vexDisplayOrientation 0x780
vexDisplayLanguageSet 0x784
vexDisplayStringGet 0x788
vexDisplayClearVsyncState 0x78c
vexDisplayGetVsyncState 0x790
vexDisplayClipRegionSet 0x794
vexDisplayRotateFlagGet 0x798
vexDisplayThemeIdGet 0x79c
vexDisplayRender 0x7a0
vexDisplayDoubleBufferDisable 0x7a4
vexDisplayClipRegionSetWithIndex 0x7a8
vexFileMountSD 0x7d0
vexFileDirectoryGet 0x7d4
vexFileOpen 0x7d8
vexFileOpenWrite 0x7dc
vexFileOpenCreate 0x7e0
vexFileClose 0x7e4
vexFileWrite 0x7ec
vexFileSize 0x7f0
vexFileSeek 0x7f4
vexFileRead 0x7f8
vexFileDriveStatus 0x7fc
vexFileTell 0x800
vexFileSync 0x804
vexFileStatus 0x808
_write_user 0x820
_read_user 0x824
_open_user 0x828
_close_user 0x82c
_lseek_user 0x830
_fstat_user 0x834
_fcntl_user 0x838
_isatty_user 0x83c
vexSystemFileReopen 0x840
vexSerialWriteChar 0x898
vexSerialWriteBuffer 0x89c
vexSerialReadChar 0x8a0
vexSerialPeekChar 0x8a4
vexSerialEnableRemoteConsole 0x8a8
vexSerialWriteFree 0x8ac
vexSystemTimerStop 0x8c0
vexSystemTimerClearInterrupt 0x8c4
vexSystemTimerReinitForRtos 0x8c8
vexSystemApplicationIRQHandler 0x8cc
vexSystemWatchdogReinitRtos 0x8d0
vexSystemWatchdogGet 0x8d4
vexSystemTimerCallbackInstall 0x8d8
vexSystemVSyncCallbackInstall 0x8dc
vexSystemBoot 0x910
vexSystemUndefinedException 0x914
vexSystemFIQInterrupt 0x918
vexSystemIRQInterrupt 0x91c
vexSystemSWInterrupt 0x920
vexSystemDataAbortInterrupt 0x924
vexSystemPrefetchAbortInterrupt 0x928
vexTouchUserCallbackSet 0x960
vexTouchDataGet 0x964
vexAssetsFind 0x988
vexAssetsDump 0x98c
vexImageBmpRead 0x990
vexImagePngRead 0x994
vexScratchMemoryLock 0x998
vexScratchMemoryUnlock 0x99c
vexSystemPdataSet 0x9b0
vexSystemPdataGet 0x9b4
vexSystemPdataIdGet 0x9b8
vexSystemPdataFlagsGet 0x9bc
vexSystemAppDataOptionsGet 0x9c0
vexSystemAppDataLinkAddrGet 0x9c4
vexSystemAppDataRes1Get 0x9c8
vexSystemAppExtendedDataGet 0x9cc
vexSystemAppDebugDataGet 0x9d0
vexCompetitionStatus 0x9d8
vexCompetitionControl 0x9dc
vexBatteryVoltageGet 0xa00
vexBatteryCurrentGet 0xa04
vexBatteryTemperatureGet 0xa08
vexBatteryCapacityGet 0xa0c
vexBatteryDataGet 0xa10
vexBatteryDataSet 0xa14
vexDeviceEventMaskSet 0xa28
vexDeviceEventMaskGet 0xa2c
vexDeviceEventDataSet 0xa30
vexDeviceEventDataGet 0xa34
vexDeviceEventBitsSet 0xa38
vexDeviceEventBitsGet 0xa3c
vexDeviceGenericSerialEnable 0xa50
vexDeviceGenericSerialBaudrate 0xa54
vexDeviceGenericSerialWriteChar 0xa58
vexDeviceGenericSerialWriteFree 0xa5c
vexDeviceGenericSerialTransmit 0xa60
vexDeviceGenericSerialReadChar 0xa64
vexDeviceGenericSerialPeekChar 0xa68
vexDeviceGenericSerialReceiveAvail 0xa6c
vexDeviceGenericSerialReceive 0xa70
vexDeviceGenericSerialFlush 0xa74
vexDeviceGenericSerialDisableAll 0xa78
vexDeviceGenericSerialCdcRead 0xa7c
vexDeviceGenericRadioConnection 0xaa4
vexDeviceGenericRadioWriteChar 0xaa8
vexDeviceGenericRadioWriteFree 0xaac
vexDeviceGenericRadioTransmit 0xab0
vexDeviceGenericRadioReadChar 0xab4
vexDeviceGenericRadioPeekChar 0xab8
vexDeviceGenericRadioReceiveAvail 0xabc
vexDeviceGenericRadioReceive 0xac0
vexDeviceGenericRadioFlush 0xac4
vexDeviceGenericRadioLinkStatus 0xac8
vexDeviceGenericRadioDebugGet 0xacc
vexDeviceGenericCdcEnable 0xaf0
vexDeviceGenericCdcConnection 0xaf4
vexDeviceGenericCdcWriteChar 0xaf8
vexDeviceGenericCdcWriteFree 0xafc
vexDeviceGenericCdcTransmit 0xb00
vexDeviceGenericCdcReadChar 0xb04
vexDeviceGenericCdcPeekChar 0xb08
vexDeviceGenericCdcReceiveAvail 0xb0c
vexDeviceGenericCdcReceive 0xb10
vexDeviceGenericCdcFlush 0xb14
vexDeviceGenericCdcLinkStatus 0xb18
vexDeviceGenericCdcDebugGet 0xb1c
vexDeviceOpticalIntegrationTimeSet 0xb40
vexDeviceOpticalIntegrationTimeGet 0xb44
vexGzipInflateBuffer 0xf00
vexGzipInflateBufferRaw 0xf04
vexCdc2Command 0xf28
vexCdc2ReplyWithoutPacket 0xf2c
vexCdc2SendSimpleMessage 0xf30
vexCdc2SendExtMessage 0xf34
vexTaskAddWithArg 0xf50
vexTaskAddWithPriorityWithArg 0xf54
vexTaskStopWithId 0xf58
vexTaskSuspendWithId 0xf5c
vexTaskResumeWithId 0xf60
vexTaskPriorityGetWithId 0xf64
vexTaskPrioritySetWithId 0xf68
vexTaskStateGetWithId 0xf6c
vexTaskGetTaskIndexWithId 0xf70
vexBackgroundProcessing 0xf74
vexTaskGet 0xf7c
vexSystemErrorMessageSet 0xf94
vexSystemFwUpdateRequest 0xf98
vexIntegrityCheck 0xf9c