|
PropWare
3.0.0.229
C++ objects and CMake build system for Parallax Propeller
|
5 void init_MMA7660FC(
void);
6 int raw2g100(
char gRaw);
10 volatile int bt_accelInitFlag = 0;
11 volatile int eei2cLock;
12 volatile int eei2cLockFlag;
14 void init_MMA7660FC(
void)
17 unsigned char val = 0;
44 unsigned char val = 0;
50 int g100 = raw2g100(val);
51 if(axis ==
AY) g100 = -g100;
55 void accels(
int *
x,
int *y,
int *z)
64 int raw2g100(
char gRaw)
66 int g100 = (int) gRaw;
67 int sign = 1 & (g100 >> 5);
69 g100 = 0xFFFFFFC0 | g100;
72 g100 = g100 * 469 / 100;
HUBTEXT void i2c_stop(i2c *bus)
Send Signal i2c stop condition on bus.
#define lockset(lockid)
Set a lock.
#define lockclr(lockid)
Clear lock.
static const SPI::Mode MODE
#define locknew()
Get a new lock from the pool of Propeller hardware locks.