|
| XWinCUSBInterface (const char *name, bool runtime, const shared_ptr< XDriver > &driver, uint8_t addr_offset, const char *id) |
|
virtual void | open () throw (XInterfaceError &) |
|
virtual void | close () throw (XInterfaceError &) |
| This can be called even if has already closed.
|
|
void | deferWritings () |
|
void | writeToRegister8 (unsigned int addr, uint8_t data) |
|
void | writeToRegister16 (unsigned int addr, uint16_t data) |
|
void | bulkWriteStored () |
|
void | resetBulkWrite () |
|
void | burstRead (unsigned int addr, uint8_t *buf, unsigned int cnt) |
|
uint8_t | singleRead (unsigned int addr) |
|
uint16_t | readRegister8 (unsigned int addr) |
|
uint16_t | readRegister16 (unsigned int addr) |
|
XString | getIDN (int maxlen=255) |
|
void | lock () |
| overrides XInterface::lock().
|
|
void | unlock () |
|
bool | isLocked () const |
|
virtual void | send (const char *str) throw (XCommError &) |
|
virtual void | receive () throw (XCommError &) |
|
virtual bool | isOpened () const |
|
| 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 XString & | eos () const |
|
void | query (const XString &str) throw (XCommError &) |
|
virtual void | query (const char *str) throw (XCommError &) |
|
| XInterface (const char *name, bool runtime, const shared_ptr< XDriver > &driver) |
|
void | setLabel (const XString &str) |
|
virtual XString | getLabel () const |
|
shared_ptr< XDriver > | driver () 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 |
|
XRecursiveMutex & | mutex () |
|
void | start () |
|
void | stop () |
|
| 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< XNode > | getChild (const XString &var) const |
|
shared_ptr< XNode > | getParent () const |
|
void | setUIEnabled (bool v) |
| Enables/disables controls over scripting/GUI.
|
|
void | disable () |
| Disables all scripting/GUI operations on this node hereafter.
|
|
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) |
|
XNode * | upperNode (Snapshot< XNode > &shot) |
| Finds the parent node in shot.
|
|
Snapshot< XNode > | iterate_commit (Closure) |
|
Snapshot< XNode > | iterate_commit_if (Closure) |
|
void | iterate_commit_while (Closure) |
|
void | print_ () const |
|
| Node (const Node &)=delete |
|
Node & | operator= (const Node &)=delete |
|
interfaces chameleon USB, found at http://optimize.ath.cx/cusb
Definition at line 21 of file ezusbthamway.h.