C:/Milton/UA/Humanoid/Lab/Fase3_Integration/v3/Slave_Stable1.02/global.h File Reference

#include <p18f258.h>

Data Structures

struct  struct_servo
struct  struct_sensors
struct  struct_actuators

Defines

#define HOST_SCU   1
#define HOST_MCU   0
#define F_CPU   10
#define true   1
#define false   0
#define SENSORS_REACTION   0
#define SENSORS_ORIENTATION   1
#define N_SERVOS   3
#define N_FORCE_SENSORS   4
#define SPECIAL_SENSORS   true
#define SENSORS_ID   SENSORS_REACTION
#define FOOT_ID   1
#define HOME_POSITIONS   { 0, 0, 0}
#define RESET_POSITION   -128

Typedefs

typedef unsigned char byte
typedef unsigned int word
typedef unsigned long dword
typedef unsigned char bool

Functions

void initGlobal (void)
void initSensors (void)
void initActuators (void)
void reinitServo (byte srv)

Variables

volatile struct_sensors sensors
volatile struct_actuators actuators
const volatile signed char homePosition [N_SERVOS]

Define Documentation

#define F_CPU   10
 

#define false   0
 

#define FOOT_ID   1
 

#define HOME_POSITIONS   { 0, 0, 0}
 

#define HOST_MCU   0
 

#define HOST_SCU   1
 

#define N_FORCE_SENSORS   4
 

#define N_SERVOS   3
 

#define RESET_POSITION   -128
 

#define SENSORS_ID   SENSORS_REACTION
 

#define SENSORS_ORIENTATION   1
 

#define SENSORS_REACTION   0
 

#define SPECIAL_SENSORS   true
 

#define true   1
 


Typedef Documentation

typedef unsigned char bool
 

typedef unsigned char byte
 

typedef unsigned long dword
 

typedef unsigned int word
 


Function Documentation

void initActuators void   ) 
 

void initGlobal void   ) 
 

void initSensors void   ) 
 

void reinitServo byte  srv  ) 
 


Variable Documentation

volatile struct_actuators actuators
 

const volatile signed char homePosition[N_SERVOS]
 

volatile struct_sensors sensors
 


Generated on Fri Feb 24 16:43:46 2006 for Slave Unit by  doxygen 1.4.6-NO