6LoWPAN-api

Version 3 (6lowpan group from 18-748 -, 05/05/2010 10:47 pm)

1 1 6lowpan group from 18-748 -
= Nano-RK 6LoWPAN API =
2 1 6lowpan group from 18-748 -
3 1 6lowpan group from 18-748 -
 * '''void _6lp_task_config ()'''
4 1 6lowpan group from 18-748 -
    * This function configures 6LoWPAN and starts up the necessary tasks.  This should be called before Nano-RK starts up.
5 1 6lowpan group from 18-748 -
6 1 6lowpan group from 18-748 -
 * '''int8_t _6lp_init(uint8_t chan)'''
7 1 6lowpan group from 18-748 -
    * This function starts 6LoWPAN.  ''chan'' refers to the radio channel that packets will be sent on. Returns 1 upon success, -1 otherwise.
8 2 6lowpan group from 18-748 -
9 2 6lowpan group from 18-748 -
 * '''int8_t udp_socket()'''
10 3 6lowpan group from 18-748 -
    * This function creates a new UDP socket and returns a descriptor for the socket.
11 2 6lowpan group from 18-748 -
12 1 6lowpan group from 18-748 -
 * '''int8_t udp_bind(int8_t sock_num, int16_t port)'''
13 3 6lowpan group from 18-748 -
    * This function binds a created socket with a given port and the current node's IPv6 address.  Currently there is only
14 3 6lowpan group from 18-748 -
support for a single IPv6 address per node.
15 2 6lowpan group from 18-748 -
16 2 6lowpan group from 18-748 -
 * '''int8_t udp_send(int8_t sock_num, struct pkt_buff *pktb, int8_t len, struct ipv6_addr *dest_addr, int16_t dest_port)'''
17 2 6lowpan group from 18-748 -
    * 
18 2 6lowpan group from 18-748 -
19 2 6lowpan group from 18-748 -
 * '''int8_t udp_receive(int8_t sock_num, struct pkt_buff *pktb)'''
20 2 6lowpan group from 18-748 -
    * 
21 2 6lowpan group from 18-748 -
22 2 6lowpan group from 18-748 -
 * '''int8_t udp_release(int8_t sock_num)'''
23 2 6lowpan group from 18-748 -
    *