2022-09-19 20:28:07 +08:00
|
|
|
static bool mock_init(uint8_t *mac, void *data) {
|
|
|
|
(void) mac, (void) data;
|
2022-11-09 21:11:22 +08:00
|
|
|
return true;
|
2022-09-19 20:28:07 +08:00
|
|
|
}
|
|
|
|
|
|
|
|
static size_t mock_tx(const void *buf, size_t len, void *data) {
|
|
|
|
(void) buf, (void) len, (void) data;
|
|
|
|
return len;
|
|
|
|
}
|
|
|
|
|
|
|
|
static size_t mock_rx(void *buf, size_t len, void *data) {
|
|
|
|
(void) buf, (void) len, (void) data;
|
|
|
|
return len;
|
|
|
|
}
|
|
|
|
|
|
|
|
static bool mock_up(void *data) {
|
|
|
|
(void) data;
|
2022-11-09 21:11:22 +08:00
|
|
|
return true;
|
2022-09-19 20:28:07 +08:00
|
|
|
}
|
|
|
|
|
|
|
|
struct mip_driver mip_driver_mock = {mock_init, mock_tx, mock_rx, mock_up, 0};
|