73 #ifndef __STUNICAST_H__
74 #define __STUNICAST_H__
80 struct stunicast_conn;
82 #define STUNICAST_ATTRIBUTES UNICAST_ATTRIBUTES
84 struct stunicast_callbacks {
85 void (* recv)(
struct stunicast_conn *c,
const rimeaddr_t *from);
86 void (* sent)(
struct stunicast_conn *c,
int status,
int num_tx);
89 struct stunicast_conn {
90 struct unicast_conn c;
93 const struct stunicast_callbacks *u;
97 void stunicast_open(
struct stunicast_conn *c, uint16_t channel,
98 const struct stunicast_callbacks *u);
99 void stunicast_close(
struct stunicast_conn *c);
101 int stunicast_send_stubborn(
struct stunicast_conn *c,
const rimeaddr_t *receiver,
102 clock_time_t rxmittime);
103 void stunicast_cancel(
struct stunicast_conn *c);
105 int stunicast_send(
struct stunicast_conn *c,
const rimeaddr_t *receiver);
107 void stunicast_set_timer(
struct stunicast_conn *c, clock_time_t t);
109 rimeaddr_t *stunicast_receiver(
struct stunicast_conn *c);