Show ship_datatypes.h syntax highlighted
#ifndef __ship_datatypes_h__
#define __ship_datatypes_h__
namespace tlm {
//---------------------------------------------------------------------------
/**
* SHIP command definitions
* @see shipSlaveAPI.waitEvent()
*/
//---------------------------------------------------------------------------
///SHIP commands
enum ship_command_enum {
///A master requests data from a slave
SHIP_REQUEST=0,
///A master sends data to a slave
SHIP_SEND,
///No active command available
SHIP_NONE
};
///SHIP operation modes
enum ship_mode {
///PV mode, uses b_transact
SHIP_MODE_PV=0,
///BA performance, transfers SHIP object by reference (requires SHIP APIs at both ends of the channel)
SHIP_MODE_BA_P=1,
///BA compatibility mode, transfers serialized SHIP object (connect a SHIP API with another user API)
SHIP_MODE_BA_C=2,
///CT mode, transfers serialized SHIP object and sends a notification for each data cycle
SHIP_MODE_CT=3
};
///This struct is returned by the waitEvent method.
/**
* @see ship_slave_if.waitEvent()
*/
struct ship_command {
///The actual command of this ship-command
/**
* @see command
*/
ship_command_enum cmd;
///The burstlength of the current command.
/**
* This burstlength information may be necessary when
* the serialisation length isn't fixed
*/
gs_uint32 burstlength;
};
} // namespace tlm
#endif
See more files for this project here