openEmbroider  0.1
an open source embroidery software
CommMaster Class Reference
Inheritance diagram for CommMaster:
Comm PcUart UartConnect< 37 > UartBlock< 37 >

Public Member Functions

 CommMaster (const char *portname, unsigned msTimeout, unsigned retries)
 
bool ack ()
 
virtual void addPoints (const uint8_t *xys, unsigned points)
 
virtual void deletePoints ()
 
virtual void stopMove ()
 
virtual void startMove ()
 
virtual void setParam ()
 
virtual void gotoXY (PosType x, PosType y)
 
virtual void movedXdY (PosType dx, PosType dy)
 
virtual void gotoNextPoint ()
 
virtual void setNPoint (uint16_t nPoint)
 
virtual void setPos (PosType x, PosType y)
 
- Public Member Functions inherited from UartBlock< 37 >
void onChar (uint8_t c)
 
void sendMsg (const uint8_t *buffer)
 
- Public Member Functions inherited from UartConnect< 37 >
void connect (UartBlock< packetSize > *uart)
 

Public Attributes

SlaveInfo info
 
- Public Attributes inherited from UartBlock< 37 >
unsigned long qosMsg
 
unsigned long qosSync
 
unsigned long qosFullSync
 
- Public Attributes inherited from UartConnect< 37 >
unsigned bytealtered_ppm
 
unsigned bytelost_ppm
 

Additional Inherited Members

- Public Types inherited from Comm
typedef int16_t PosType
 
- Static Public Attributes inherited from UartBlock< 37 >
static const unsigned kPacketSize
 
- Protected Types inherited from Comm
enum  Command : uint8_t {
  kAddPoints = 0, kDeletePoints, kStopMove, kStartMove,
  kSetParam, kGotoXY, kMovedXdY, kGotoNextPoint,
  kSetNPoint, kSetPos
}
 
- Protected Member Functions inherited from Comm
PosType readPosType (const uint8_t *buffer, unsigned index=0)
 
void writePosType (uint8_t *buffer, PosType pos, unsigned index=0)
 
- Protected Member Functions inherited from PcUart
 PcUart (const char *name)
 
bool uartwrite (const void *buf, size_t count)
 
void startReader ()
 
void reader ()
 
- Protected Attributes inherited from PcUart
int fd
 

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