its_common.h File Reference

#include "pic_utils.h"
Include dependency graph for its_common.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Data Structures

union  its_address
struct  its_device_info
struct  local_address
struct  remote_address

Defines

#define ITS_ACK   0x03
#define ITS_APP_DATA   0x02
#define ITS_ASSOC_REQ   0x00
#define ITS_ASSOC_RES   0x01
#define ITS_DEVICE_NONE   0xff
#define ITS_ENDPOINT_DATA   0x0c
#define ITS_ENDPOINT_REQ   0x0a
#define ITS_ENDPOINT_RES   0x0b
#define ITS_GENERIC_DATA   0x09
#define ITS_LOCAL_DISCOVER_REQ   0x05
#define ITS_LOCAL_DISCOVER_RES   0x06
#define ITS_NET_DISCOVER_REQ   0x07
#define ITS_NET_DISCOVER_RES   0x08
#define ITS_PENDING_DATA_REQ   0x04
#define ITS_ROUTE_FAILURE   0x0d

Typedefs

typedef uns8 its_device_handle

Functions

its_device_handle its_add_local_device (uns16 device_id, uns16 pan_id, uns16 short_address)
its_device_handle its_add_net_device (uns16 device_id, uns16 previous_hop)
its_device_handle its_get_device_handle (uns16 device_id)
uns16 its_get_device_id ()
its_device_infoits_get_device_info (uns8 handle)
uns16 its_get_network_id ()
 Retrieve the current network ID.
uns8 its_get_next_sequence ()
void its_init ()
 Initialise ITS and lower layers.
void its_print_devices ()
 Print devices currently known to this one.
void its_set_device_id (uns16 device_id)
 Set the ITS device ID.
void its_set_network_id (uns16 network_id)
 Set the ITS network ID.
void its_transmit_to_ea (uns8 *dest_ea, uns16 dest_its_device_id, uns8 packet_type, uns8 *data, uns8 data_length)
void its_transmit_to_handle (its_device_handle handle, uns8 packet_type, uns8 *data, uns8 data_length)
void its_transmit_to_sa (uns16 dest_pan_id, uns16 dest_sa, uns16 dest_device_id, uns8 packet_type, uns8 *data, uns8 data_length)

Define Documentation

#define ITS_ACK   0x03

Definition at line 62 of file its_common.h.

#define ITS_APP_DATA   0x02

Definition at line 61 of file its_common.h.

#define ITS_ASSOC_REQ   0x00

Definition at line 59 of file its_common.h.

Referenced by its1_device_process(), and its2_device_process().

#define ITS_ASSOC_RES   0x01
#define ITS_DEVICE_NONE   0xff
#define ITS_ENDPOINT_DATA   0x0c

Definition at line 74 of file its_common.h.

#define ITS_ENDPOINT_REQ   0x0a

Definition at line 69 of file its_common.h.

#define ITS_ENDPOINT_RES   0x0b

Definition at line 72 of file its_common.h.

#define ITS_GENERIC_DATA   0x09
#define ITS_LOCAL_DISCOVER_REQ   0x05

Definition at line 64 of file its_common.h.

Referenced by its2_request_local_addr(), and its2_router_queue_packet().

#define ITS_LOCAL_DISCOVER_RES   0x06

Definition at line 65 of file its_common.h.

Referenced by its2_respond_local_addr().

#define ITS_NET_DISCOVER_REQ   0x07

Definition at line 66 of file its_common.h.

Referenced by its2_request_net_addr(), and its2_router_queue_packet().

#define ITS_NET_DISCOVER_RES   0x08

Definition at line 67 of file its_common.h.

Referenced by its2_respond_net_addr().

#define ITS_PENDING_DATA_REQ   0x04

Definition at line 63 of file its_common.h.

#define ITS_ROUTE_FAILURE   0x0d

Definition at line 77 of file its_common.h.


Typedef Documentation

typedef uns8 its_device_handle

Definition of its_device_handle

Definition at line 105 of file its_common.h.


Function Documentation

its_device_handle its_add_local_device ( uns16  device_id,
uns16  pan_id,
uns16  short_address 
)

Definition at line 127 of file its_common.c.

References its_device_info::addr, debug_int_hex_16bit, debug_str, its_device_info::its_device_id, its_device_id, ITS_DEVICE_NONE, its_print_devices(), its_address::local, local_address::pan_id, local_address::short_address, and uns8.

Referenced by its2_router_handle_association().

Here is the call graph for this function:

Here is the caller graph for this function:

its_device_handle its_add_net_device ( uns16  device_id,
uns16  previous_hop 
)
its_device_handle its_get_device_handle ( uns16  device_id  ) 

Definition at line 108 of file its_common.c.

References its_device_id, ITS_DEVICE_NONE, and uns8.

Referenced by its2_forward_routed_packet(), and its2_router_handle_association().

Here is the caller graph for this function:

uns16 its_get_device_id (  ) 

Definition at line 89 of file its_common.c.

References its_device_id.

Referenced by its2_process_tx_queue(), its2_rebroadcast_net_discover_req(), and its2_router_queue_packet().

Here is the caller graph for this function:

its_device_info* its_get_device_info ( uns8  handle  ) 

Definition at line 100 of file its_common.c.

Referenced by its2_forward_routed_packet(), and its2_transmit().

Here is the caller graph for this function:

uns16 its_get_network_id (  ) 

Definition at line 81 of file its_common.c.

References its_network_id.

Referenced by its2_router_queue_packet().

Here is the caller graph for this function:

uns8 its_get_next_sequence (  ) 

Definition at line 72 of file its_common.c.

References its_sequence.

Referenced by its2_router_queue_packet().

Here is the caller graph for this function:

void its_init (  ) 

Call before using any ITS functionality

Definition at line 93 of file its_common.c.

References its_device_info::its_device_id, uns8, and wpan_init().

Referenced by its1_controller_init(), its1_device_init(), its2_device_init(), and its2_router_init().

Here is the call graph for this function:

Here is the caller graph for this function:

void its_print_devices (  ) 

Definition at line 51 of file its_common.c.

References debug_int_hex_16bit, debug_nl, debug_str, its_device_id, and uns8.

Referenced by its_add_local_device(), and its_add_net_device().

Here is the caller graph for this function:

void its_set_device_id ( uns16  device_id  ) 

Set the ITS device ID before sending packets. See also: its_set_network_id(uns16 network_id);

Definition at line 85 of file its_common.c.

References its_device_id.

Referenced by its1_controller_init(), its1_device_init(), its2_device_init(), and its2_router_init().

Here is the caller graph for this function:

void its_set_network_id ( uns16  network_id  ) 

Set the ITS network ID before sending packets See also: its_set_device_id(uns16 device_id);

Definition at line 76 of file its_common.c.

References its_network_id.

Referenced by its1_controller_init(), its1_device_init(), its2_device_init(), and its2_router_init().

Here is the caller graph for this function:

void its_transmit_to_ea ( uns8 *  dest_ea,
uns16  dest_its_device_id,
uns8  packet_type,
uns8 *  data,
uns8  data_length 
)

Definition at line 232 of file its_common.c.

References FRAME_TYPE_DATA, its_device_id, its_network_id, its_sequence, mrf24j40_transmit_to_extended_address(), MRF_NO_ACK, and uns8.

Referenced by its1_device_process().

Here is the call graph for this function:

Here is the caller graph for this function:

void its_transmit_to_handle ( its_device_handle  handle,
uns8  packet_type,
uns8 *  data,
uns8  data_length 
)
void its_transmit_to_sa ( uns16  dest_pan_id,
uns16  dest_sa,
uns16  dest_device_id,
uns8  packet_type,
uns8 *  data,
uns8  data_length 
)

Definition at line 195 of file its_common.c.

References FRAME_TYPE_DATA, its_device_id, its_network_id, its_sequence, mrf24j40_transmit_to_short_address(), MRF_ACK, uns16, and uns8.

Referenced by its2_device_process(), and its_transmit_to_handle().

Here is the call graph for this function:

Here is the caller graph for this function:


Generated on Wed Dec 8 13:47:17 2010 for Pic Pack by  doxygen 1.6.1