Contiki 2.5
|
Files | |
file | dtn_network.c |
file | dtn_network.h |
Functions | |
uint8_t * | dtn_network_get_buffer () |
Returns the pointer to a buffer that can be used to contruct packets. More... | |
uint8_t | dtn_network_get_buffer_length () |
Returns the maximum buffer length. More... | |
void | dtn_network_send (rimeaddr_t *destination, uint8_t length, void *reference) |
Send out the content that was put in the buffer. More... | |
Variables | |
struct network_driver | dtn_network_driver |
Contiki's network driver interface. | |
struct network_driver | dtn_network_driver |
Contiki's network driver interface. | |
uint8_t * dtn_network_get_buffer | ( | ) |
Returns the pointer to a buffer that can be used to contruct packets.
Definition at line 110 of file dtn_network.c.
References NULL, packetbuf_clear(), and packetbuf_dataptr().
uint8_t dtn_network_get_buffer_length | ( | ) |
Returns the maximum buffer length.
Definition at line 123 of file dtn_network.c.
References PACKETBUF_SIZE.
void dtn_network_send | ( | rimeaddr_t * | destination, |
uint8_t | length, | ||
void * | reference | ||
) |
Send out the content that was put in the buffer.
destination | Pointer to the destination address |
length | Length of the outgoing frame |
reference | Reference that will be passed on into the callback |
Definition at line 127 of file dtn_network.c.
References packetbuf_set_datalen().