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
encoders_mock.h
Go to the documentation of this file.
1
24#ifndef ENCODERS_MOCK_H_
25#define ENCODERS_MOCK_H_
26
27#include <encoders.h>
28#include <gmock/gmock.h>
29
31public:
32 MOCK_METHOD1(init, void(Machine_t));
33 MOCK_METHOD0(getBeltShift, BeltShift_t());
34 MOCK_METHOD0(getDirection, Direction_t());
35 MOCK_METHOD0(getCarriage, Carriage_t());
36 MOCK_METHOD0(getMachineType, Machine_t());
37 MOCK_METHOD0(encA_interrupt, void());
38 MOCK_METHOD0(getPosition, uint8_t());
39 MOCK_METHOD0(getHallActive, Direction_t());
40 MOCK_METHOD1(getHallValue, uint16_t(Direction_t));
41};
42
43EncodersMock *encodersMockInstance();
44void releaseEncodersMock();
45
46#endif // ENCODERS_MOCK_H_
Encoder interface.
Definition encoders.h:125
Definition encoders_mock.h:30