Contiki 2.6

uart_usb_lib.c File Reference

This file controls the UART USB functions. More...

#include "config.h"
#include "usb_drv.h"
#include "usb_descriptors.h"
#include "serial/uart_usb_lib.h"
#include "cdc_task.h"
#include <stdio.h>

Go to the source code of this file.

Functions

void uart_usb_init (void)
 Initializes the uart_usb library.
bit uart_usb_tx_ready (void)
 This function checks if the USB emission buffer is ready to accept at at least 1 byte.
int uart_usb_putchar (int data_to_send)
 This function fills the USB transmit buffer with the new data.
bit uart_usb_test_hit (void)
 This function checks if a character has been received on the USB bus.
char uart_usb_getchar (void)
 This function reads one byte from the USB bus.
void uart_usb_flush (void)
 This function sends the data stored in the USB transmit buffer.

Variables

Uchar tx_counter
 Counter for USB Serial port.

Detailed Description

This file controls the UART USB functions.

*********************************************************************

*******************************************************

Definition in file uart_usb_lib.c.