Revision 1608
wl updates: compile issues
wireless.h | ||
---|---|---|
99 | 99 |
|
100 | 100 |
// TODO: this max may be too big b/c the packet handler array stores 3*MAX_PACKET_GROUPS bytes |
101 | 101 |
/**@brief maximum number of packet groups, size of handler array **/ |
102 |
#define MAX_PACKET_GROUPS UINT8_C(255)
|
|
102 |
#define MAX_PACKET_GROUPS UINT8_C(16)
|
|
103 | 103 |
|
104 | 104 |
/**@brief init_flag when library has not been initialized **/ |
105 | 105 |
#define INIT_NO UINT8_C(0) |
... | ... | |
145 | 145 |
// the send functions |
146 | 146 |
|
147 | 147 |
/**@brief The core send function. This will take all possible arguments and send all types of packets. **/ |
148 |
int8_t wl_send(char *data, uint8_t length, uint8_t group, uint8_t scope, uint8_t dest, uint8_t mode);
|
|
148 |
int16_t wl_send(uint8_t *data, uint8_t length, uint8_t group, uint8_t scope, uint16_t dest, uint8_t mode);
|
|
149 | 149 |
|
150 | 150 |
/**@brief Wrapper for core send function that will send a global packet across the current channel. **/ |
151 |
int8_t wl_send_global(char *data, uint8_t length, uint8_t group);
|
|
151 |
int16_t wl_send_global(char *data, uint8_t length, uint8_t group);
|
|
152 | 152 |
|
153 | 153 |
/**@brief Wrapper for core send function that will send a packet across the current channel on the current pan. **/ |
154 |
int8_t wl_send_pan(char *data, uint8_t length, uint8_t group);
|
|
154 |
int16_t wl_send_pan(char *data, uint8_t length, uint8_t group);
|
|
155 | 155 |
|
156 | 156 |
/**@brief Wrapper for core send function that will send a packet across the current channel to a specific robot. **/ |
157 |
int8_t wl_send_robot(char *data, uint8_t length, uint8_t group, uint8_t dest, uint8_t mode);
|
|
157 |
int16_t wl_send_robot(char *data, uint8_t length, uint8_t group, uint8_t dest, uint8_t mode);
|
|
158 | 158 |
|
159 | 159 |
/**@brief Default (i.e. basic) send wrapper. **/ |
160 |
int8_t wl_send_basic(char *data, uint8_t length);
|
|
160 |
int16_t wl_send_basic(char *data, uint8_t length);
|
|
161 | 161 |
|
162 | 162 |
|
163 | 163 |
// the ack function |
Also available in: Unified diff