user_hooks.h
Go to the documentation of this file.
1 /*
2  * This file can be used to define custom register addresses
3  * Just use addresses 100 and above
4  */
5 
6 void userSetup()
7 {
8  // do any setup here
9 }
10 
11 unsigned char userWrite(int addr, unsigned char param)
12 {
13  // use the register value
14  return ERR_INSTRUCTION;
15 }
16 
17 /* Read one byte from register located at addr */
18 int userRead(int addr)
19 {
20  // return the register value
21  return 0;
22 }
void userSetup()
Definition: user_hooks.h:6
int userRead(int addr)
Definition: user_hooks.h:18
unsigned char userWrite(int addr, unsigned char param)
Definition: user_hooks.h:11


arbotix_firmware
Author(s): Michael Ferguson
autogenerated on Fri Jun 7 2019 21:54:07