Interface with the wireless library.
-
- |
-
Modules |
- | Public Constants |
-
- | Public API Functions |
-
- | Error Codes |
-
-
Functions |
-int8_t | wl_init (void) |
-
- | Initialize wireless.
|
-int8_t | wl_terminate (void) |
-
- | Terminate wireless.
|
-int8_t | wl_register_handler (uint8_t group, void(*func)(void), uint8_t priority) |
-
- | Function to register new packet handlers (for non-default groups only).
|
-int8_t | wl_get (char *data, uint8_t length) |
-
- | The main receive function. Dispatches packets for registered handlers and returns next basic packet if available.
|
-int8_t | wl_get_basic (char *data, uint8_t length) |
-
- | Returns the next basic packet if available.
|
-
-int8_t | wl_dispatch (void) |
-
- | Dispatches packets for registered handlers.
|
-int16_t | wl_send (char *data, uint8_t length, uint8_t group, uint8_t scope, uint16_t dest, uint8_t mode) |
-
-int16_t | wl_send_global (char *data, uint8_t length, uint8_t group) |
-
- | Wrapper for core send function that will send a global packet across the current channel.
|
-int16_t | wl_send_pan (char *data, uint8_t length, uint8_t group) |
-
- | Wrapper for core send function that will send a packet across the current channel on the current pan.
|
-int16_t | wl_send_robot (char *data, uint8_t length, uint8_t group, uint16_t dest, uint8_t mode) |
-
-int16_t | wl_send_basic (char *data, uint8_t length) |
-
- | Default (i.e. basic) send wrapper.
|
-int8_t | wl_ack_error (void) |
-
- | Returns the number of acknowledgment errors.
|
-int8_t | wl_ack_check (uint8_t packet) |
-
- | Checks a specific packet for the acknowledgement status.
|
-void | wl_ack_reset (void) |
-
- | Resets acknowledgement statistics back to zero.
|
+Data Structures |
+struct | PacketGroupHandler |
+Modules |
+ | Public Constants |
+ | Public API Functions |
+ | Error Codes |
+Defines |
+
+#define | PACKET_BUFFER_SIZE 250 |
+Functions |
+int8_t | wl_init (void) |
+ | Initialize wireless.
|
+int8_t | wl_terminate (void) |
+ | Terminate wireless.
|
+int8_t | wl_register_handler (uint8_t group, FNPTR, uint8_t priority) |
+ | Function to register new packet handlers (for non-default groups only).
|
+int8_t | wl_unregister_handler (uint8_t group) |
+ | Function to unregister existing packet handlers (for non-default groups only).
|
+int8_t | wl_get (char *data, uint8_t length) |
+ | The main receive function. Dispatches packets for registered handlers and returns next basic packet if available.
|
+int8_t | wl_get_basic (char *data, uint8_t length) |
+ | Returns the next basic packet if available.
|
+
+int8_t | wl_dispatch (void) |
+ | Dispatches packets for registered handlers.
|
+int16_t | wl_send (uint8_t *data, uint8_t length, uint8_t group, uint8_t scope, uint16_t dest, uint8_t mode) |
+ | The core send function. This will take all possible arguments and send all types of packets.
|
+int16_t | wl_send_global (uint8_t *data, uint8_t length, uint8_t group) |
+ | Wrapper for core send function that will send a global packet across the current channel.
|
+int16_t | wl_send_pan (uint8_t *data, uint8_t length, uint8_t group) |
+ | Wrapper for core send function that will send a packet across the current channel on the current pan.
|
+int16_t | wl_send_robot (uint8_t *data, uint8_t length, uint8_t group, uint16_t dest, uint8_t mode) |
+ | Wrapper for core send function that will send a packet across the current channel to a specific robot.
|
+int16_t | wl_send_basic (uint8_t *data, uint8_t length) |
+ | Default (i.e. basic) send wrapper.
|
+uint8_t | wl_ack_error (void) |
+ | Returns the number of acknowledgment errors.
|
+int8_t | wl_ack_check (uint8_t packet) |
+ | Checks a specific packet for the acknowledgement status.
|
+void | wl_ack_reset (void) |
+ | Resets acknowledgement statistics back to zero.
|
-Interface with the wireless library.
Interface with the wireless library.