Classes | Functions | Variables
usb-buffer.c File Reference
#include <usb/usb.h>
#include <usb/usb_device.h>
#include "usb_function_cdc.h"
#include "usb-buffer.h"
#include "usb_uart.h"
Include dependency graph for usb-buffer.c:

Go to the source code of this file.

Classes

struct  fifo

Functions

uint16 AsebaGetBuffer (AsebaVMState *vm, uint8 *data, uint16 maxLength, uint16 *source)
void AsebaSendBuffer (AsebaVMState *vm, const uint8 *data, uint16 length)
unsigned char AsebaTxReady (unsigned char *data)
int AsebaUsbBulkRecv (unsigned char *data, unsigned char size)
void AsebaUsbInit (unsigned char *sendQueue, size_t sendQueueSize, unsigned char *recvQueue, size_t recvQueueSize)
int AsebaUsbRecvBufferEmpty (void)
int AsebaUsbTxBusy (void)
static void fifo_peek (unsigned char *d, struct fifo *f, size_t size)
static void fifo_reset (struct fifo *f)
static size_t get_free (struct fifo *f)
static size_t get_used (struct fifo *f)
static void memcpy_out_fifo (unsigned char *dest, struct fifo *f, size_t size)
static void memcpy_to_fifo (struct fifo *f, const unsigned char *src, size_t size)

Variables

struct {
   struct fifo   rx
   struct fifo   tx
AsebaUsb
static int debug
static int tx_busy

Function Documentation

static void fifo_peek ( unsigned char *  d,
struct fifo f,
size_t  size 
) [inline, static]

Definition at line 76 of file usb-buffer.c.

static void fifo_reset ( struct fifo f) [inline, static]

Definition at line 85 of file usb-buffer.c.

static size_t get_free ( struct fifo f) [inline, static]

Definition at line 53 of file usb-buffer.c.

static size_t get_used ( struct fifo f) [inline, static]

Definition at line 43 of file usb-buffer.c.

static void memcpy_out_fifo ( unsigned char *  dest,
struct fifo f,
size_t  size 
) [inline, static]

Definition at line 60 of file usb-buffer.c.

static void memcpy_to_fifo ( struct fifo f,
const unsigned char *  src,
size_t  size 
) [inline, static]

Definition at line 68 of file usb-buffer.c.


Variable Documentation

struct { ... } AsebaUsb [static]
int debug [static]

Definition at line 92 of file usb-buffer.c.

struct fifo rx

Definition at line 35 of file usb-buffer.c.

struct fifo tx

Definition at line 36 of file usb-buffer.c.

int tx_busy [static]

Definition at line 91 of file usb-buffer.c.



aseba
Author(s): Stéphane Magnenat
autogenerated on Sun Oct 5 2014 23:46:39