#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>
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 SERVO_BASE_NR 10 |
| bool i2cRead | ( | unsigned char * | buf, | |
| int | len | |||
| ) |

| char i2cSetAddr | ( | int | addr | ) |

| bool i2cWrite | ( | unsigned char * | buf, | |
| int | len | |||
| ) |

| bool initAccel | ( | ) |


| void initI2C | ( | ) |

| bool initOrte | ( | ) |


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

| void* publisherAccelCreate | ( | void * | arg | ) |

| bool readAccel | ( | ) |


| 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 |
1.7.1