its_mode1.c File Reference

#include "its_mode1.h"
#include "its_common.h"
#include "wpan.h"
#include "mrf24j40.h"
#include "config.h"
#include "pic_serial.h"
#include "pic_tick.h"
#include "pic_timer.h"
Include dependency graph for its_mode1.c:

Go to the source code of this file.

Functions

its1_result its1_controller_handle_association (uns16 pan_id, uns16 its_device_id)
uns8 its1_controller_init (uns16 my_device_id, uns16 network_id)
void its1_controller_process ()
void its1_controller_receive_callback (uns16 device_id, uns8 *data, uns8 data_length)
its1_result its1_controller_transmit (uns16 device_id, uns8 *data, uns8 data_length)
its1_result its1_device_init (uns16 my_device_id, uns16 network_id)
void its1_device_process ()
its1_result its1_device_transmit (uns8 *data, uns8 data_length)
its1_result its1_find_controller ()
void its1_setup_io ()
void wpan_data_received_callback (wpan_address *addr, uns8 *data, uns8 data_size)

Variables

uns8 channel
uns8 controller_handle
its1_state state = STATE_STARTUP
uns16 tick_marker

Function Documentation

its1_result its1_controller_handle_association ( uns16  pan_id,
uns16  its_device_id 
)

Definition at line 62 of file its_mode1.c.

References ITS_ASSOC_RES, ITS_DEVICE_NONE, its_transmit_to_handle(), RESULT_FAILED, RESULT_SUCCESSFUL, and serial_print_str().

Here is the call graph for this function:

uns8 its1_controller_init ( uns16  my_device_id,
uns16  network_id 
)
void its1_controller_process (  ) 

Definition at line 279 of file its_mode1.c.

void its1_controller_receive_callback ( uns16  device_id,
uns8 *  data,
uns8  data_length 
)
its1_result its1_controller_transmit ( uns16  device_id,
uns8 *  data,
uns8  data_length 
)

Definition at line 265 of file its_mode1.c.

References ITS_GENERIC_DATA, and its_transmit_to_handle().

Here is the call graph for this function:

its1_result its1_device_init ( uns16  my_device_id,
uns16  network_id 
)
void its1_device_process (  ) 
its1_result its1_device_transmit ( uns8 *  data,
uns8  data_length 
)

Definition at line 352 of file its_mode1.c.

References controller_handle, ITS_GENERIC_DATA, and its_transmit_to_handle().

Here is the call graph for this function:

its1_result its1_find_controller (  ) 

Definition at line 310 of file its_mode1.c.

References channel, state, STATE_SEARCHING, tick_get_count(), and tick_marker.

Here is the call graph for this function:

void its1_setup_io (  ) 

Definition at line 57 of file its_mode1.c.

References wpan_setup_io().

Here is the call graph for this function:

void wpan_data_received_callback ( wpan_address addr,
uns8 *  data,
uns8  data_size 
)

Variable Documentation

uns8 channel
its1_state state = STATE_STARTUP
uns16 tick_marker

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