#include "pic_utils.h"
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_info * | its_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 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 |
Definition at line 60 of file its_common.h.
Referenced by its1_controller_handle_association(), its2_router_handle_association(), and wpan_data_received_callback().
#define ITS_DEVICE_NONE 0xff |
Definition at line 107 of file its_common.h.
Referenced by its1_controller_handle_association(), its2_forward_routed_packet(), its2_rebroadcast_net_discover_req(), its2_router_handle_association(), its2_transmit(), its_add_local_device(), its_add_net_device(), its_get_device_handle(), and wpan_data_received_callback().
#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 |
Definition at line 68 of file its_common.h.
Referenced by its1_controller_transmit(), its1_device_transmit(), its2_device_transmit(), and wpan_data_received_callback().
#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 uns8 its_device_handle |
Definition of its_device_handle
Definition at line 105 of file its_common.h.
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().
its_device_handle its_add_net_device | ( | uns16 | device_id, | |
uns16 | previous_hop | |||
) |
Definition at line 158 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(), remote_address::prior_device_id, its_address::remote, remote_address::remote_indicator, and uns8.
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().
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().
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().
uns16 its_get_network_id | ( | ) |
Definition at line 81 of file its_common.c.
References its_network_id.
Referenced by its2_router_queue_packet().
uns8 its_get_next_sequence | ( | ) |
Definition at line 72 of file its_common.c.
References its_sequence.
Referenced by its2_router_queue_packet().
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().
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().
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().
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().
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().
void its_transmit_to_handle | ( | its_device_handle | handle, | |
uns8 | packet_type, | |||
uns8 * | data, | |||
uns8 | data_length | |||
) |
Definition at line 185 of file its_common.c.
References its_device_info::addr, its_device_info::its_device_id, its_transmit_to_sa(), its_address::local, and local_address::short_address.
Referenced by its1_controller_handle_association(), its1_controller_transmit(), its1_device_transmit(), its2_device_transmit(), and its2_router_handle_association().
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().