49 #include "contiki-net.h"
56 #define PRINTF(...) printf(__VA_ARGS__)
61 static const struct packetbuf_attrlist attributes[] =
62 { ABC_ATTRIBUTES PACKETBUF_ATTR_LAST };
66 abc_open(
struct abc_conn *c, uint16_t channelno,
69 channel_open(&c->channel, channelno);
71 channel_set_attributes(channelno, attributes);
77 channel_close(&c->channel);
83 PRINTF(
"%d.%d: abc: abc_send on channel %d\n",
85 c->channel.channelno);
86 return rime_output(&c->channel);
92 struct abc_conn *c = (
struct abc_conn *)channel;
93 PRINTF(
"%d.%d: abc: abc_input_packet on channel %d\n",
101 abc_sent(
struct channel *channel,
int status,
int num_tx)
103 struct abc_conn *c = (
struct abc_conn *)channel;
104 PRINTF(
"%d.%d: abc: abc_sent on channel %d\n",
109 c->u->sent(c, status, num_tx);