Contiki 3.x
Functions
usb-serial.c File Reference

    Platform process which implements a UART-like functionality over
    the cc2531 dongle's USB hardware.
More...

#include "contiki.h"
#include "sys/process.h"
#include "usb/common/usb-api.h"
#include "usb/common/cdc-acm/cdc-acm.h"
#include "usb/common/usb.h"
#include "usb/common/usb-arch.h"

Go to the source code of this file.

Functions

void usb_serial_writeb (uint8_t b)
 Write a byte over USB. More...
 
void usb_serial_set_input (int(*input)(unsigned char c))
 Set an input hook for bytes received over USB. More...
 
void usb_serial_init ()
 Initialise the Serial-over-USB process.
 

Detailed Description

    Platform process which implements a UART-like functionality over
    the cc2531 dongle's USB hardware.
    With it in place, putchar can be redirected to the USB and USB
    incoming traffic can be handled as input
Author
Philippe Retornaz (EPFL) - Original code George Oikonomou - oikon.nosp@m.omou.nosp@m.@user.nosp@m.s.so.nosp@m.urcef.nosp@m.orge.nosp@m..net Turned this to a 'serial over USB' platform process

Definition in file usb-serial.c.