Contiki 3.x
Macros | Functions
usb-serial.h File Reference

    Header file for cc2531's UART-like I/O over USB
More...

#include "contiki.h"

Go to the source code of this file.

Macros

#define usb_serial_flush()
 Immediately transmit the content of Serial-over-USB TX buffers. More...
 

Functions

void usb_serial_init (void)
 Initialise the Serial-over-USB process.
 
void usb_serial_writeb (uint8_t)
 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...
 

Detailed Description

    Header file for cc2531's UART-like I/O over USB
    With it in place, putchar can be redirected to the USB and USB
    incoming traffic can be handled as input
Author
George Oikonomou - oikon.nosp@m.omou.nosp@m.@user.nosp@m.s.so.nosp@m.urcef.nosp@m.orge.nosp@m..net

Definition in file usb-serial.h.