AYAB Arduino Firmware 0.95
The goal of the AYAB project is to provide an alternative way to control the famous Brother KH-9xx range of knitting machines using a computer
ComMock Class Reference
Inheritance diagram for ComMock:
Inheritance graph
Collaboration diagram for ComMock:
Collaboration graph

Public Member Functions

 MOCK_METHOD0 (init, void())
 
 MOCK_METHOD0 (update, void())
 
 MOCK_CONST_METHOD2 (send, void(uint8_t *payload, size_t length))
 
 MOCK_METHOD2 (sendMsg, void(AYAB_API_t id, const char *msg))
 
 MOCK_CONST_METHOD2 (send_reqLine, void(const uint8_t lineNumber, Err_t error))
 
 MOCK_CONST_METHOD3 (send_indState, void(Carriage_t carriage, uint8_t position, Err_t error))
 
 MOCK_METHOD2 (onPacketReceived, void(const uint8_t *buffer, size_t size))
 
- Public Member Functions inherited from ComInterface
virtual void init ()=0
 
virtual void update ()=0
 
virtual void send (uint8_t *payload, size_t length) const =0
 
virtual void sendMsg (AYAB_API_t id, const char *msg)=0
 
virtual void send_reqLine (const uint8_t lineNumber, Err_t error=ErrorCode::success) const =0
 
virtual void send_indState (Carriage_t carriage, uint8_t position, Err_t error=ErrorCode::success) const =0
 
virtual void onPacketReceived (const uint8_t *buffer, size_t size)=0
 

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