#include "contiki.h"
Functions | |
PROCESS_NAME (slip_process) | |
void | slip_arch_init (unsigned long ubr) |
void | slip_arch_writeb (unsigned char c) |
int | slip_input_byte (unsigned char c) |
Input a SLIP byte. More... | |
uint8_t | slip_send (void) |
Send an IP packet from the uIP buffer with SLIP. More... | |
void | slip_set_input_callback (void(*callback)(void)) |
Set a function to be called when there is activity on the SLIP interface; used for detecting if a node is a gateway node. More... | |
uint8_t | slip_write (const void *ptr, int len) |
Variables | |
uint8_t | slip_active |
uint16_t | slip_ip_drop |
uint16_t | slip_overflow |
uint16_t | slip_rubbish |
uint16_t | slip_twopackets |
PROCESS_NAME | ( | slip_process | ) |
void slip_arch_init | ( | unsigned long | ubr | ) |
void slip_arch_writeb | ( | unsigned char | c | ) |
Referenced by slip_poll_handler(), slip_send(), and slip_write().
int slip_input_byte | ( | unsigned char | c | ) |
Input a SLIP byte.
This function is called by the RS232/SIO device driver to pass incoming bytes to the SLIP driver. The function can be called from an interrupt context.
For systems using low-power CPU modes, the return value of the function can be used to determine if the CPU should be woken up or not. If the function returns non-zero, the CPU should be powered up. If the function returns zero, the CPU can continue to be powered down.
c | The data that is to be passed to the SLIP driver |
References begin, c, end, pkt_end, process_poll(), RX_BUFSIZE, rxbuf, SLIP_END, SLIP_ESC, SLIP_ESC_END, SLIP_ESC_ESC, slip_overflow, slip_rubbish, SLIP_STATISTICS, slip_twopackets, state, STATE_ESC, STATE_OK, STATE_RUBBISH, and STATE_TWOPACKETS.
uint8_t slip_send | ( | void | ) |
Send an IP packet from the uIP buffer with SLIP.
References c, i, ptr, slip_arch_writeb(), SLIP_END, SLIP_ESC, SLIP_ESC_END, SLIP_ESC_ESC, uip_appdata, uip_buf, UIP_FW_OK, uip_len, UIP_LLH_LEN, and UIP_TCPIP_HLEN.
Referenced by input_callback(), and output().
void slip_set_input_callback | ( | void(*)(void) | callback | ) |
Set a function to be called when there is activity on the SLIP interface; used for detecting if a node is a gateway node.
References c, and input_callback.
Referenced by init().
uint8_t slip_write | ( | const void * | ptr, |
int | len | ||
) |
References c, i, len, ptr, slip_arch_writeb(), SLIP_END, SLIP_ESC, SLIP_ESC_END, and SLIP_ESC_ESC.
Referenced by PROCESS_THREAD().
uint8_t slip_active |
Referenced by PROCESS_THREAD().
uint16_t slip_ip_drop |
Referenced by PROCESS_THREAD().
uint16_t slip_overflow |
Referenced by slip_input_byte().
uint16_t slip_rubbish |
Referenced by slip_input_byte().
uint16_t slip_twopackets |
Referenced by slip_input_byte().