Project

General

Profile

Revision 79

Added by Chris Mar over 16 years ago

tried to merge lib_additions again...

View differences:

wireless.c
61 61
	for (i = 0; i < WL_MAX_PACKET_GROUPS; i++)
62 62
		wl_packet_groups[i] = NULL;
63 63

  
64
	xbee_lib_init(WL_DEFAULT_PAN);
64
	xbee_lib_init();
65 65
	
66 66
	//begin timeout timer
67 67
	#ifdef ROBOT
......
111 111
}
112 112

  
113 113
/**
114
 * Set the PAN for the XBee to join.
115
 *
116
 * @param pan the new PAN
117
 *
118
 * @see wl_get_pan
119
 **/
120
void wl_set_pan(int pan)
121
{
122
	xbee_set_pan_id(pan);
123
}
124

  
125
/**
126
 * Get the PAN the XBee is currently part of.
127
 *
128
 * @return the PAN of the XBee
129
 *
130
 * @see wl_set_pan
131
 **/
132
int wl_get_pan(void)
133
{
134
	return xbee_get_pan_id();
135
}
136

  
137
/**
138
 * Set the channel the XBee is listening to.
139
 *
140
 * @param channel the new channel to join
141
 *
142
 * @see wl_get_channel
143
 **/
144
void wl_set_channel(int channel)
145
{
146
	xbee_set_channel(channel);
147
}
148

  
149
/**
150
 * Get the channel the XBee is part of.
151
 *
152
 * @return the channel the XBee is part of
153
 *
154
 * @see wl_set_channel
155
 **/
156
int wl_get_channel(void)
157
{
158
	return xbee_get_channel();
159
}
160

  
161
/**
114 162
 * Returns the 16-bit address of the XBee module.
115 163
 *
116 164
 * @return the 16-bit address of the XBee module.

Also available in: Unified diff