Contiki 2.5
Functions | Variables
rndis.c File Reference

    RNDIS Functions for mounting USB device as network interface
More...

#include <stdbool.h>
#include "radio.h"
#include "contiki.h"
#include "config.h"
#include "usb_drv.h"
#include "usb_descriptors.h"
#include "usb_specific_request.h"
#include "rndis/rndis_protocol.h"
#include "rndis/rndis_task.h"
#include "uip.h"
#include "serial/uart_usb_lib.h"
#include "sicslow_ethernet.h"
#include <avr/pgmspace.h>
#include <string.h>
#include <stdio.h>
#include <util/delay.h>

Go to the source code of this file.

Functions

void rndis_packetFilter (uint32_t newfilter)
 Set the packet filter - currently distinguishes between promiscuous mode and normal mode.
 
uint8_t rndis_send_encapsulated_command (uint16_t wLength)
 Handles a "SEND ENCAPSULATED COMMAND" message. More...
 
void rndis_send_interrupt (void)
 Send an interrupt over the interrupt endpoint to the host.
 
void rndis_query_process (void)
 Function to handle a RNDIS "QUERY" command in the encapsulated_buffer.
 
void rndis_set_process (void)
 Function to deal with a RNDIS "SET" command present in the encapsulated_buffer.
 
uint8_t rndis_get_encapsulated_command (void)
 Handle "GET ENCAPSULATED COMMAND". More...
 
uint8_t rndis_send_status (rndis_Status_t stat)
 Send a status packet back to the host. More...
 
uint8_t rndis_send (uint8_t *senddata, uint16_t sendlen, uint8_t led)
 Send data over RNDIS interface, data is in uipbuf and length is uiplen.
 

Variables

prog_uint32_t OIDSupportedList []
 List of supported RNDIS OID's.
 
uint8_t usb_eth_data_buffer [64]
 Temp data buffer when adding RNDIS headers.
 

Detailed Description

    RNDIS Functions for mounting USB device as network interface
Author
Colin O'Flynn cofly.nosp@m.nn@n.nosp@m.ewae..nosp@m.com

Definition in file rndis.c.