SingingCat 0
application
netdev.c
1#include "networkif.h"
2#include "sx1262/sx1262.h"
3
4void sx1262_info(struct network_context *nctx) {
5 print_chip_status(nctx, 1);
6}
7struct networkif sx1262dev = {
8 .probe = &sx1262_probe,
9 .init = &sx1262_init,
10 .loop = &sx1262_loop,
11 .transmit = &sx1262_transmit,
12 .info = &sx1262_info,
13 .stop = &sx1262_stop,
14 .busy = &sx1262_busy,
15};
16
17
18struct networkif *sx1262_get_netdev() {
19 return &sx1262dev;
20}