37 #include "Usb_faked.h"
44 static RecordedCall * Record__FtClockDatabus(uint8_t arg1)
46 char const *call_name =
"_FtClockDatabus";
47 RecordedCall *record_of_this_call = RecordedCall_new(call_name);
48 RecordedArg *record_of_arg1 = RecordedArg_new(SetupRecord_uint8_t);
49 *((uint8_t *)record_of_arg1->pArg) = arg1;
51 RecordArg(record_of_this_call, record_of_arg1);
52 return record_of_this_call;
60 RecordActualCall(mock, Record__FtClockDatabus(direction));
64 static RecordedCall * Record__FtReadDatabus(uint8_t * arg1)
66 char const *call_name =
"_FtReadDatabus";
67 RecordedCall *record_of_this_call = RecordedCall_new(call_name);
68 RecordedArg *record_of_arg1 = RecordedArg_new(SetupRecord_p_uint8_t);
69 *((uint8_t **)record_of_arg1->pArg) = arg1;
71 RecordArg(record_of_this_call, record_of_arg1);
72 return record_of_this_call;
80 RecordActualCall( mock, Record__FtReadDatabus(pbyte) );
84 static RecordedCall * Record__FtWriteDatabus(uint8_t arg1)
86 char const *call_name =
"_FtWriteDatabus";
87 RecordedCall *record_of_this_call = RecordedCall_new(call_name);
88 RecordedArg *record_of_arg1 = RecordedArg_new(SetupRecord_uint8_t);
89 *((uint8_t *)record_of_arg1->pArg) = arg1;
91 RecordArg(record_of_this_call, record_of_arg1);
92 return record_of_this_call;
100 RecordActualCall( mock, Record__FtWriteDatabus(
byte) );
104 static RecordedCall * Record__FtDatabusPinDirection(uint8_t arg1)
106 char const *call_name =
"_FtDatabusPinDirection";
107 RecordedCall *record_of_this_call = RecordedCall_new(call_name);
108 RecordedArg *record_of_arg1 = RecordedArg_new(SetupRecord_uint8_t);
109 *((uint8_t *)record_of_arg1->pArg) = arg1;
111 RecordArg(record_of_this_call, record_of_arg1);
112 return record_of_this_call;
120 RecordActualCall( mock, Record__FtDatabusPinDirection(pin_direction) );
128 char const *call_name =
"FtSelectFT221X";
129 RecordedCall *record_of_this_call = RecordedCall_new(call_name);
130 return record_of_this_call;
137 RecordActualCall(mock, Record_FtSelectFT221X());
143 char const *call_name =
"FtBusTurnaround";
144 RecordedCall *record_of_this_call = RecordedCall_new(call_name);
145 return record_of_this_call;
152 RecordActualCall(mock, Record_FtBusTurnaround());
158 char const *call_name =
"FtIsOk";
159 RecordedCall *record_of_this_call = RecordedCall_new(call_name);
160 return record_of_this_call;
167 RecordActualCall(mock, Record_FtIsOk());
174 char const *call_name =
"FtRead";
175 RecordedCall *record_of_this_call = RecordedCall_new(call_name);
176 RecordedArg *record_of_arg1 = RecordedArg_new(SetupRecord_p_uint8_t);
177 *((uint8_t **)record_of_arg1->pArg) = arg1;
179 RecordArg(record_of_this_call, record_of_arg1);
180 return record_of_this_call;
188 RecordActualCall( mock, Record_FtRead(pbyte) );
194 char const *call_name =
"FtWrite";
195 RecordedCall *record_of_this_call = RecordedCall_new(call_name);
196 RecordedArg *record_of_arg1 = RecordedArg_new(SetupRecord_uint8_t);
197 *((uint8_t *)record_of_arg1->pArg) = arg1;
199 RecordArg(record_of_this_call, record_of_arg1);
200 return record_of_this_call;
208 RecordActualCall(mock, Record_FtWrite(
byte));
214 char const *call_name =
"FtUnselectFT221X";
215 RecordedCall *record_of_this_call = RecordedCall_new(call_name);
216 return record_of_this_call;
223 RecordActualCall(mock, Record_FtUnselectFT221X());
usb-bridge communicates over USB via FTDI USB Bridge IC FT221X
void _FtWriteDatabus_fake(uint8_t byte)
void _FtDatabusPinDirection_fake(uint8_t pin_direction)
void _FtReadDatabus_fake(uint8_t *pbyte)
void FtRead_fake(uint8_t *pbyte)
void FtBusTurnaround_fake(void)
void FtSelectFT221X_fake(void)
void _FtClockDatabus_fake(uint8_t direction)
void FtWrite_fake(uint8_t byte)
void FtUnselectFT221X_fake(void)