Public Member Functions | Protected Member Functions | Private Types | Private Member Functions | Private Attributes | Static Private Attributes | List of all members
XFujikinInterface Class Reference
Inheritance diagram for XFujikinInterface:
Inheritance graph
[legend]

Public Member Functions

 XFujikinInterface (const char *name, bool runtime, const shared_ptr< XDriver > &driver)
 
template<typename T >
void send (uint8_t classid, uint8_t instanceid, uint8_t attributeid, T data)
 
template<typename T >
query (uint8_t classid, uint8_t instanceid, uint8_t attributeid)
 
template<>
void send (uint8_t classid, uint8_t instanceid, uint8_t attributeid, uint8_t data)
 
template<>
void send (uint8_t classid, uint8_t instanceid, uint8_t attributeid, uint16_t data)
 
template<>
void send (uint8_t classid, uint8_t instanceid, uint8_t attributeid, uint32_t data)
 
- Public Member Functions inherited from XCharInterface
 XCharInterface (const char *name, bool runtime, const shared_ptr< XDriver > &driver)
 
void setGPIBUseSerialPollOnWrite (bool x)
 
void setGPIBUseSerialPollOnRead (bool x)
 
void setGPIBWaitBeforeWrite (int msec)
 
void setGPIBWaitBeforeRead (int msec)
 
void setGPIBWaitBeforeSPoll (int msec)
 
void setGPIBMAVbit (unsigned char x)
 
bool gpibUseSerialPollOnWrite () const
 
bool gpibUseSerialPollOnRead () const
 
int gpibWaitBeforeWrite () const
 
int gpibWaitBeforeRead () const
 
int gpibWaitBeforeSPoll () const
 
unsigned char gpibMAVbit () const
 
void setSerialBaudRate (unsigned int rate)
 These properties should be set before open().
 
void setSerialStopBits (unsigned int bits)
 
void setSerialParity (unsigned int parity)
 
void setSerial7Bits (bool enable)
 
void setSerialFlushBeforeWrite (bool x)
 
void setSerialEOS (const char *str)
 be overridden by setEOS().
 
void setSerialHasEchoBack (bool x)
 
unsigned int serialBaudRate () const
 
unsigned int serialStopBits () const
 
unsigned int serialParity () const
 
bool serial7Bits () const
 
bool serialFlushBeforeWrite () const
 
const XStringserialEOS () const
 
bool serialHasEchoBack () const
 
virtual void send (const XString &str) throw (XCommError &)
 
virtual void send (const char *str) throw (XCommError &)
 
virtual void write (const char *sendbuf, int size) throw (XCommError &)
 
virtual void receive () throw (XCommError &)
 
virtual void receive (unsigned int length) throw (XCommError &)
 
- Public Member Functions inherited from XCustomCharInterface
 XCustomCharInterface (const char *name, bool runtime, const shared_ptr< XDriver > &driver)
 
const std::vector< char > & buffer () const
 
int scanf (const char *format,...) const __attribute__((format(scanf
 error-check is user's responsibility.
 
int double toDouble () const throw (XConvError &)
 
int toInt () const throw (XConvError &)
 
unsigned int toUInt () const throw (XConvError &)
 
XString toStr () const
 
XString toStrSimplified () const
 returns string white-spaces stripped.
 
void sendf (const char *format,...) __attribute__((format(printf throw (XInterfaceError &)
 
void void queryf (const char *format,...) __attribute__((format(printf throw (XInterfaceError &)
 
void void void setEOS (const char *str)
 
const XStringeos () const
 
void query (const XString &str) throw (XCommError &)
 
virtual void query (const char *str) throw (XCommError &)
 
- Public Member Functions inherited from XInterface
 XInterface (const char *name, bool runtime, const shared_ptr< XDriver > &driver)
 
void setLabel (const XString &str)
 
virtual XString getLabel () const
 
shared_ptr< XDriverdriver () const
 
const shared_ptr< XComboNode > & device () const
 type of interface or driver.
 
const shared_ptr< XStringNode > & port () const
 port number or device name.
 
const shared_ptr< XUIntNode > & address () const
 e.g. GPIB address.
 
const shared_ptr< XBoolNode > & control () const
 True if interface is opened. Start/stop interface.
 
void lock ()
 
void unlock ()
 
bool isLocked () const
 
XRecursiveMutexmutex ()
 
void start ()
 
void stop ()
 
- Public Member Functions inherited from XNode
 XNode (const char *name, bool runtime=false)
 
template<class T >
shared_ptr< T > create (const char *name)
 
template<class T , typename... Args>
shared_ptr< T > create (const char *name, bool runtime, Args &&...args)
 
template<class T >
shared_ptr< T > create (Transaction &tr, const char *name)
 
template<class T , typename... Args>
shared_ptr< T > create (Transaction &tr, const char *name, bool runtime, Args &&...args)
 
XString getName () const
 
XString getTypename () const
 
shared_ptr< XNodegetChild (const XString &var) const
 
shared_ptr< XNodegetParent () const
 
void setUIEnabled (bool v)
 Enables/disables controls over scripting/GUI.
 
void disable ()
 Disables all scripting/GUI operations on this node hereafter.
 
- Public Member Functions inherited from Transactional::Node< XNode >
bool insert (Transaction< XNode > &tr, const shared_ptr< XNode > &var, bool online_after_insertion=false)
 
void insert (const shared_ptr< XNode > &var)
 
bool release (Transaction< XNode > &tr, const shared_ptr< XNode > &var)
 
void release (const shared_ptr< XNode > &var)
 
void releaseAll ()
 
bool swap (Transaction< XNode > &tr, const shared_ptr< XNode > &x, const shared_ptr< XNode > &y)
 
void swap (const shared_ptr< XNode > &x, const shared_ptr< XNode > &y)
 
XNodeupperNode (Snapshot< XNode > &shot)
 Finds the parent node in shot.
 
Snapshot< XNodeiterate_commit (Closure)
 
Snapshot< XNodeiterate_commit_if (Closure)
 
void iterate_commit_while (Closure)
 
void print_ () const
 
 Node (const Node &)=delete
 
Nodeoperator= (const Node &)=delete
 

Protected Member Functions

virtual void open () throw (XInterfaceError &)
 
virtual void close () throw (XInterfaceError &)
 This can be called even if has already closed.
 
virtual bool isOpened () const
 
- Protected Member Functions inherited from XCharInterface
shared_ptr< XPortopenedPort () const
 

Private Types

enum  { STX = 0x02, ACK = 0x06, NAK = 0x16 }
 

Private Member Functions

void communicate_once (uint8_t classid, uint8_t instanceid, uint8_t attributeid, const std::vector< uint8_t > &data, std::vector< uint8_t > *response)
 
void communicate (uint8_t classid, uint8_t instanceid, uint8_t attributeid, const std::vector< uint8_t > &data, std::vector< uint8_t > *response=0)
 

Private Attributes

shared_ptr< XPortm_openedPort
 

Static Private Attributes

static XMutex s_lock
 
static std::deque< weak_ptr
< XPort > > 
s_openedPorts
 

Additional Inherited Members

- Public Types inherited from XCharInterface
enum  { PARITY_NONE = 0, PARITY_ODD = 1, PARITY_EVEN = 2 }
 
- Static Public Member Functions inherited from XCustomCharInterface
static std::vector< char > & buffer_receive ()
 only for XPort and internal use.
 

Detailed Description

Definition at line 20 of file fujikininterface.h.

Member Function Documentation

void XFujikinInterface::communicate_once ( uint8_t  classid,
uint8_t  instanceid,
uint8_t  attributeid,
const std::vector< uint8_t > &  data,
std::vector< uint8_t > *  response 
)
private
Todo:
better to use port-by-port lock.

Definition at line 127 of file fujikininterface.cpp.


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

Generated for KAME4 by  doxygen 1.8.3