QlightRead Project
|
#include "at90usbxx2_driver.h"
Go to the source code of this file.
Functions | |
void | USB_re_fresh (void) |
USB_refresh() Function to delay the 20ms (read LUFA documentation) of the USB_task. | |
SINT8 | SPI_init (void) |
SPI_init() Initialises the SPI hardware. | |
SINT8 | uC_init (void) |
uC_init() Initialises uC sets external oscillator (16Mhz) | |
SINT8 | USART_init (void) |
USART_init() Initialises USART for Serial functionality. | |
SINT8 | SPIclkenable (void) |
SPIclkenable() sends SPI clock when SPSR is ready. | |
UINT8 | getSPIvalue (void) |
getSPIvalue() When SPSR is ready, SPDR data registery is read and return to caller | |
void | SET_CS (void) |
SET_CS() Sets the SlaveSelect (SS) to low (/SS) and enables the ADC. | |
void | _SET_CS (void) |
_SET_CS() Sets the SlaveSelect (SS) to high (SS) and disables the ADC | |
SINT8 | USB_init (void) |
USB_init() Initialises USB on AT90USB according to LUFA documentation. | |
void | EVENT_USB_Device_Connect (void) |
EVENT_USB_Device_Connect() Please consult LUFA documentation. | |
void | EVENT_USB_Device_Disconnect (void) |
EVENT_USB_Device_Disconnect() Please consult LUFA documentation. | |
void | EVENT_USB_Device_ConfigurationChanged (void) |
EVENT_USB_Device_ConfigurationChanged() Please consult LUFA documentation. | |
void | EVENT_USB_Device_ControlRequest (void) |
EVENT_USB_Device_Connect() Please consult LUFA documentation. | |
void | usb_control (void) |
usb_control() Please consult LUFA documentation | |
SINT8 | write_EndPoint (UINT16 value) |
write_EndPoint() Please consult LUFA documentation | |
Variables | |
USB_ClassInfo_CDC_Device_t | PAMO_CDC_Interface |
PAMO_CDC_Interface. |
QlightRead hardware extension program
----------------------------------------------------------------------
Description: This File contains hardware functions for at90usbxx2
----------------------------------------------------------------------
LICENSE: Copyright (C) 2011 by Ron Ablinger trilog_studios@nerdshack.com
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 (at your option) 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.
You should have received a copy of the GNU General Public License along with this program; if not, write to the Free Software Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. ----------------------------------------------------------------------
Last Modified: 2010/01/17
Definition in file at90usbxx2_driver.c.
void _SET_CS | ( | void | ) |
_SET_CS() Sets the SlaveSelect (SS) to high (SS) and disables the ADC
none |
none |
Definition at line 207 of file at90usbxx2_driver.c.
void EVENT_USB_Device_ConfigurationChanged | ( | void | ) |
EVENT_USB_Device_ConfigurationChanged() Please consult LUFA documentation.
none |
none |
Definition at line 268 of file at90usbxx2_driver.c.
void EVENT_USB_Device_Connect | ( | void | ) |
EVENT_USB_Device_Connect() Please consult LUFA documentation.
none |
none |
Definition at line 240 of file at90usbxx2_driver.c.
void EVENT_USB_Device_ControlRequest | ( | void | ) |
EVENT_USB_Device_Connect() Please consult LUFA documentation.
none |
none |
Definition at line 283 of file at90usbxx2_driver.c.
void EVENT_USB_Device_Disconnect | ( | void | ) |
EVENT_USB_Device_Disconnect() Please consult LUFA documentation.
none |
none |
Definition at line 254 of file at90usbxx2_driver.c.
UINT8 getSPIvalue | ( | void | ) |
getSPIvalue() When SPSR is ready, SPDR data registery is read and return to caller
none |
Returns | a current value in the SPDR register |
Definition at line 178 of file at90usbxx2_driver.c.
void SET_CS | ( | void | ) |
SET_CS() Sets the SlaveSelect (SS) to low (/SS) and enables the ADC.
none |
none |
Definition at line 193 of file at90usbxx2_driver.c.
SINT8 SPI_init | ( | void | ) |
SPI_init() Initialises the SPI hardware.
none |
Returns | -1 on error ,0 else |
Definition at line 86 of file at90usbxx2_driver.c.
SINT8 SPIclkenable | ( | void | ) |
SPIclkenable() sends SPI clock when SPSR is ready.
none |
Returns | -1 on error, 0 else |
Definition at line 162 of file at90usbxx2_driver.c.
SINT8 uC_init | ( | void | ) |
uC_init() Initialises uC sets external oscillator (16Mhz)
none |
Returns | -1 on error , 0 else |
Definition at line 111 of file at90usbxx2_driver.c.
SINT8 USART_init | ( | void | ) |
USART_init() Initialises USART for Serial functionality.
none |
Returns | -1 on error, 0 else |
Definition at line 132 of file at90usbxx2_driver.c.
void usb_control | ( | void | ) |
usb_control() Please consult LUFA documentation
none |
none |
Definition at line 297 of file at90usbxx2_driver.c.
SINT8 USB_init | ( | void | ) |
USB_init() Initialises USB on AT90USB according to LUFA documentation.
none |
Returns | -1 on error, 0 else |
Definition at line 221 of file at90usbxx2_driver.c.
void USB_re_fresh | ( | void | ) |
USB_refresh() Function to delay the 20ms (read LUFA documentation) of the USB_task.
none |
Definition at line 71 of file at90usbxx2_driver.c.
SINT8 write_EndPoint | ( | UINT16 | value | ) |
write_EndPoint() Please consult LUFA documentation
unsigned | int value - value to write to USB interface |
Returns | -1 on error, 0 else |
Definition at line 314 of file at90usbxx2_driver.c.
USB_ClassInfo_CDC_Device_t PAMO_CDC_Interface |
{ .Config = { .ControlInterfaceNumber = 0, .DataINEndpointNumber = DATAINEP, .DataINEndpointSize = DATAINSIZE, .DataINEndpointDoubleBank = false, .DataOUTEndpointNumber = DATAOUTEP, .DataOUTEndpointSize = DATAOUTSIZE, .DataOUTEndpointDoubleBank = false, }, }
PAMO_CDC_Interface.
Defines the Device
Definition at line 47 of file at90usbxx2_driver.c.