Classes | Macros | 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__
 

Macros

#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
 

Macro Definition Documentation

◆ COMMAND_FLAG_RESET_STATS

#define COMMAND_FLAG_RESET_STATS   0x1

Definition at line 139 of file power_comm.h.

◆ COMMAND_FLAG_RESET_TRANSITION_STATS

#define COMMAND_FLAG_RESET_TRANSITION_STATS   0x2

Definition at line 140 of file power_comm.h.

◆ CURRENT_MESSAGE_SIZE

#define CURRENT_MESSAGE_SIZE   (sizeof(PowerMessage))

Definition at line 34 of file power_comm.h.

◆ REVISION_2_MESSAGE_SIZE

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

Definition at line 36 of file power_comm.h.

Enumeration Type Documentation

◆ CB_Command

enum CB_Command
Enumerator
NONE 
COMMAND_START 
COMMAND_STOP 
COMMAND_RESET 
COMMAND_DISABLE 

Definition at line 50 of file power_comm.h.

◆ CB_State

enum CB_State
Enumerator
STATE_NOPOWER 
STATE_STANDBY 
STATE_PUMPING 
STATE_ON 
STATE_DISABLED 

Definition at line 49 of file power_comm.h.

◆ Master_State

Enumerator
MASTER_NOPOWER 
MASTER_STANDBY 
MASTER_ON 
MASTER_OFF 
MASTER_SHUTDOWN 

Definition at line 48 of file power_comm.h.

Variable Documentation

◆ COMMAND_MESSAGE_REVISION

const unsigned COMMAND_MESSAGE_REVISION = 2
static

Definition at line 39 of file power_comm.h.

◆ CURRENT_MESSAGE_REVISION

const unsigned CURRENT_MESSAGE_REVISION = 3
static

Definition at line 33 of file power_comm.h.

◆ MESSAGE_ID_COMMAND

const unsigned MESSAGE_ID_COMMAND = 1
static

Definition at line 43 of file power_comm.h.

◆ MESSAGE_ID_POWER

const unsigned MESSAGE_ID_POWER = 0
static

Definition at line 42 of file power_comm.h.

◆ MESSAGE_ID_STATUS

const unsigned MESSAGE_ID_STATUS = 3
static

Definition at line 45 of file power_comm.h.

◆ MESSAGE_ID_TRANSITION

const unsigned MESSAGE_ID_TRANSITION = 2
static

Definition at line 44 of file power_comm.h.

◆ MINIMUM_MESSAGE_REVISION

const unsigned MINIMUM_MESSAGE_REVISION = 2
static

Definition at line 35 of file power_comm.h.

◆ POWER_PORT

const unsigned POWER_PORT = 6801
static

Definition at line 46 of file power_comm.h.

◆ STATUS_MESSAGE_REVISION

const unsigned STATUS_MESSAGE_REVISION = 2
static

Definition at line 40 of file power_comm.h.

◆ TRANSITION_MESSAGE_REVISION

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 Tue Mar 7 2023 03:19:35