Source

loolog.avr / usb.h

Full commit
/**
  * @author      $Author: Sven Hendriks <sven@loolog.org> $ (Sven Hendriks)
  * @copyright   (c) 2009 Sven Hendriks
  *
  * This program is free software; you can redistribute it and/or modify
  * it under the terms of the GNU General Public License as published by
  * the Free Software Foundation; either version 2 of the License, or
  * any later version.
  *
  * This program is distributed in the hope that it will be useful,
  * but WITHOUT ANY WARRANTY; without even the implied warranty of
  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
  * GNU General Public License for more details.
  */

#ifndef USB_H_INCLUDED
#define USB_H_INCLUDED

#include <stdint.h>

uint8_t usb_init(void    (*sendByteFnctn) (uint8_t), 
                 uint16_t (*readByteFnctn) (void)    );
uint8_t usb_openFile(uint8_t filename[]);
uint8_t usb_closeFile(uint8_t filename[]);
void usb_write(uint8_t data[], uint8_t len);
uint8_t waitForUSBModule(void);
uint8_t usb_switchBaudRate(void);

#endif