Bitstream Interpretation Library (BIL)  0.1
Typedefs | Functions | Variables
bil::PacketOpcode Namespace Reference

Namespace for packet opcode constants. More...

Typedefs

typedef unsigned char opcode_t
 Packet opcode type. Tells configuration logic what to do.

Functions

const char * toString (opcode_t opcode)
 Returns a string representation of given opcode constant.

Variables

const opcode_t NO_OP = 0x00
 This opcode means: do nothing.
const opcode_t REGISTER_READ = 0x01
 This opcode means: read data from fpga (to configuration interface).
const opcode_t REGISTER_WRITE = 0x02
 This opcode means: write data to fpga (from packet).
const char *const NO_OP_STRING = "NO_OP"
const char *const REGISTER_READ_STRING = "REGISTER_READ"
const char *const REGISTER_WRITE_STRING = "REGISTER_WRITE"

Detailed Description

Namespace for packet opcode constants.

Some packets in the bitstream contain an opcode, which tells configuration logic (i.e. the packet processor) what to do with this packet.


Typedef Documentation

typedef unsigned char bil::PacketOpcode::opcode_t

Packet opcode type. Tells configuration logic what to do.

Definition at line 22 of file PacketOpcode.hpp.


Function Documentation

const char * bil::PacketOpcode::toString ( opcode_t  opcode)

Returns a string representation of given opcode constant.

Returns:
The string representation.

Definition at line 15 of file PacketOpcode.cpp.


Variable Documentation

const opcode_t bil::PacketOpcode::NO_OP = 0x00

This opcode means: do nothing.

Definition at line 26 of file PacketOpcode.hpp.

const opcode_t bil::PacketOpcode::REGISTER_READ = 0x01

This opcode means: read data from fpga (to configuration interface).

Definition at line 29 of file PacketOpcode.hpp.

const opcode_t bil::PacketOpcode::REGISTER_WRITE = 0x02

This opcode means: write data to fpga (from packet).

Definition at line 32 of file PacketOpcode.hpp.

const char *const bil::PacketOpcode::NO_OP_STRING = "NO_OP"

Definition at line 10 of file PacketOpcode.cpp.

const char *const bil::PacketOpcode::REGISTER_READ_STRING = "REGISTER_READ"

Definition at line 11 of file PacketOpcode.cpp.

const char *const bil::PacketOpcode::REGISTER_WRITE_STRING = "REGISTER_WRITE"

Definition at line 12 of file PacketOpcode.cpp.