My Project
 All Classes Files Functions Variables Enumerations Enumerator Friends Macros Pages
gcp::antenna::control::PmacComms Class Reference

Public Member Functions

 PmacComms (SpecificShare *share)
 
 PmacComms ()
 
 ~PmacComms ()
 
bool connect ()
 
void disconnect ()
 
bool pmacIsConnected ()
 
void sendCommand (PmacCommand &command)
 
void readResponse (PmacCommand &command)
 
void readReg (RegMapBlock *blk, unsigned int first, unsigned int nreg, unsigned int *value)
 
void writeReg (RegMapBlock *blk, unsigned int first, unsigned int nreg, unsigned int *value)
 
void * getMem (unsigned short offset, unsigned short length)
 
void * setMem (unsigned short offset, unsigned short length, unsigned char *data)
 

Constructor & Destructor Documentation

PmacComms::PmacComms ( SpecificShare share)

Constructor with pointer to shared resources.

....................................................................... Constructor with shared resources.

PmacComms::PmacComms ( )

Constructor.

....................................................................... Constructor with no shared resources.

PmacComms::~PmacComms ( )

Destructor.

....................................................................... Destructor

Member Function Documentation

bool PmacComms::connect ( )

Connect to the pmac.

Returns true on success.

....................................................................... Connect to the pmac port.

void PmacComms::disconnect ( )

Disconnect from the pmac.

....................................................................... Disconnect from the pmac port.

void * PmacComms::getMem ( unsigned short  offset,
unsigned short  length 
)

Method to read a chunk of memory out of the pmac DPRAM.

....................................................................... Retrieve a block of memory from the pmac dpram.

bool PmacComms::pmacIsConnected ( )

Return true if the pmac is connected.

....................................................................... Return true if we are connected to the pmac.

void PmacComms::readReg ( RegMapBlock *  blk,
unsigned int  first,
unsigned int  nreg,
unsigned int *  value 
)

Method to read the value of a named register in the pmac memory space.

....................................................................... Read from a named pmac register.

void PmacComms::readResponse ( PmacCommand command)

Read a response from the PMAC. Does not check that a response is available, and may block waiting for one, depending on how the socket was configured.

....................................................................... Private version to read a response into our internal message container.

void PmacComms::sendCommand ( PmacCommand command)

Send a single command to the PMAC.

....................................................................... Send a command to the pmac.

void * PmacComms::setMem ( unsigned short  offset,
unsigned short  length,
unsigned char *  data 
)

Write a block of memory to the pmac dpram.

....................................................................... Write a block of memory to the pmac dpram.

void PmacComms::writeReg ( RegMapBlock *  blk,
unsigned int  first,
unsigned int  nreg,
unsigned int *  value 
)

Method to write to a named register in the pmac.

....................................................................... Write to a named pmac register.


The documentation for this class was generated from the following files: