Classes | Defines | Enumerations | Variables
power_comm.h File Reference
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

struct  __attribute__
struct  __attribute__
struct  __attribute__
struct  __attribute__
struct  __attribute__
struct  __attribute__
struct  __attribute__
struct  __attribute__
struct  __attribute__

Defines

#define COMMAND_FLAG_RESET_STATS   0x1
#define COMMAND_FLAG_RESET_TRANSITION_STATS   0x2
#define CURRENT_MESSAGE_SIZE   (sizeof(PowerMessage))
#define REVISION_2_MESSAGE_SIZE   (sizeof(MessageHeader) + sizeof(StatusStruct_Rev2))

Enumerations

enum  CB_Command {
  NONE = 0, COMMAND_START = 1, COMMAND_STOP = 2, COMMAND_RESET = 3,
  COMMAND_DISABLE = 4
}
enum  CB_State {
  STATE_NOPOWER, STATE_STANDBY, STATE_PUMPING, STATE_ON,
  STATE_DISABLED
}
enum  Master_State {
  MASTER_NOPOWER, MASTER_STANDBY, MASTER_ON, MASTER_OFF,
  MASTER_SHUTDOWN
}

Variables

static const unsigned COMMAND_MESSAGE_REVISION = 2
static const unsigned CURRENT_MESSAGE_REVISION = 3
static const unsigned MESSAGE_ID_COMMAND = 1
static const unsigned MESSAGE_ID_POWER = 0
static const unsigned MESSAGE_ID_STATUS = 3
static const unsigned MESSAGE_ID_TRANSITION = 2
static const unsigned MINIMUM_MESSAGE_REVISION = 2
static const unsigned POWER_PORT = 6801
static const unsigned STATUS_MESSAGE_REVISION = 2
static const unsigned TRANSITION_MESSAGE_REVISION = 2

Define Documentation

#define COMMAND_FLAG_RESET_STATS   0x1

Definition at line 139 of file power_comm.h.

Definition at line 140 of file power_comm.h.

#define CURRENT_MESSAGE_SIZE   (sizeof(PowerMessage))

Definition at line 34 of file power_comm.h.

#define REVISION_2_MESSAGE_SIZE   (sizeof(MessageHeader) + sizeof(StatusStruct_Rev2))

Definition at line 36 of file power_comm.h.


Enumeration Type Documentation

enum CB_Command
Enumerator:
NONE 
COMMAND_START 
COMMAND_STOP 
COMMAND_RESET 
COMMAND_DISABLE 

Definition at line 50 of file power_comm.h.

enum CB_State
Enumerator:
STATE_NOPOWER 
STATE_STANDBY 
STATE_PUMPING 
STATE_ON 
STATE_DISABLED 

Definition at line 49 of file power_comm.h.

Enumerator:
MASTER_NOPOWER 
MASTER_STANDBY 
MASTER_ON 
MASTER_OFF 
MASTER_SHUTDOWN 

Definition at line 48 of file power_comm.h.


Variable Documentation

const unsigned COMMAND_MESSAGE_REVISION = 2 [static]

Definition at line 39 of file power_comm.h.

const unsigned CURRENT_MESSAGE_REVISION = 3 [static]

Definition at line 33 of file power_comm.h.

const unsigned MESSAGE_ID_COMMAND = 1 [static]

Definition at line 43 of file power_comm.h.

const unsigned MESSAGE_ID_POWER = 0 [static]

Definition at line 42 of file power_comm.h.

const unsigned MESSAGE_ID_STATUS = 3 [static]

Definition at line 45 of file power_comm.h.

const unsigned MESSAGE_ID_TRANSITION = 2 [static]

Definition at line 44 of file power_comm.h.

const unsigned MINIMUM_MESSAGE_REVISION = 2 [static]

Definition at line 35 of file power_comm.h.

const unsigned POWER_PORT = 6801 [static]

Definition at line 46 of file power_comm.h.

const unsigned STATUS_MESSAGE_REVISION = 2 [static]

Definition at line 40 of file power_comm.h.

const unsigned TRANSITION_MESSAGE_REVISION = 2 [static]

Definition at line 38 of file power_comm.h.



pr2_power_board
Author(s): Curt Meyers, Blaise Gassend
autogenerated on Sat Dec 28 2013 17:27:00