Defines | Functions | Variables

i2cd.cc File Reference

#include <iostream>
#include <cstdlib>
#include <orte.h>
#include <stdio.h>
#include <linux/i2c.h>
#include <sys/types.h>
#include <sys/stat.h>
#include <fcntl.h>
#include <sys/ioctl.h>
#include <errno.h>
#include <math.h>
Include dependency graph for i2cd.cc:

Defines

#define SERVO_BASE_NR   10

Functions

char i2cSetAddr (int addr)
bool i2cWrite (unsigned char *buf, int len)
bool i2cRead (unsigned char *buf, int len)
bool readAccel ()
bool initAccel ()
void * publisherAccelCreate (void *arg)
void initI2C ()
bool initOrte ()
int main (int argc, char *argv[])

Variables

ORTEDomain * d = NULL
ORTEPublication * publicationAccel
ORTEPublication * publicationDI
ORTEPublication * publicationIR
int file
char serva [8]
int instance2Recv [64]
int instance2Send [64]
unsigned int accel [3]
bool stateDO [8]
unsigned char stateDI
unsigned char stateIR1
unsigned char stateIR2
unsigned short int stateIR

Define Documentation

#define SERVO_BASE_NR   10

Function Documentation

bool i2cRead ( unsigned char *  buf,
int  len 
)

Here is the caller graph for this function:

char i2cSetAddr ( int  addr  ) 

Here is the caller graph for this function:

bool i2cWrite ( unsigned char *  buf,
int  len 
)

Here is the caller graph for this function:

bool initAccel (  ) 

Here is the call graph for this function:

Here is the caller graph for this function:

void initI2C (  ) 

Here is the caller graph for this function:

bool initOrte (  ) 

Here is the call graph for this function:

Here is the caller graph for this function:

int main ( int  argc,
char *  argv[] 
)

Here is the call graph for this function:

void* publisherAccelCreate ( void *  arg  ) 

Here is the caller graph for this function:

bool readAccel (  ) 

Here is the call graph for this function:

Here is the caller graph for this function:


Variable Documentation

unsigned int accel[3]
ORTEDomain* d = NULL
int file
int instance2Recv[64]
int instance2Send[64]
ORTEPublication* publicationAccel
ORTEPublication* publicationDI
ORTEPublication* publicationIR
char serva[8]
unsigned char stateDI
bool stateDO[8]
unsigned short int stateIR
unsigned char stateIR1
unsigned char stateIR2