QlightRead Project  1.23

/home/ron/Desktop/Downloads/project/QlightRead_hw/at90usbxx2_driver.c File Reference

Include dependency graph for at90usbxx2_driver.c:

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.

Detailed Description

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. ----------------------------------------------------------------------

Author:
Ron Ablinger <trilog_studios@nerdshack.com>
Date:
2011/01/17
Version:
Version:
1.23

Last Modified: 2010/01/17

Author:
Trilog Studios<Ron Ablinger>

Definition in file at90usbxx2_driver.c.


Function Documentation

void _SET_CS ( void  )

_SET_CS() Sets the SlaveSelect (SS) to high (SS) and disables the ADC

Parameters:
none
Returns:
none
Return values:
none

Definition at line 207 of file at90usbxx2_driver.c.

Here is the caller graph for this function:

void EVENT_USB_Device_ConfigurationChanged ( void  )

EVENT_USB_Device_ConfigurationChanged() Please consult LUFA documentation.

Parameters:
none
Returns:
none
Return values:
none

Definition at line 268 of file at90usbxx2_driver.c.

void EVENT_USB_Device_Connect ( void  )

EVENT_USB_Device_Connect() Please consult LUFA documentation.

Parameters:
none
Returns:
none
Return values:
none

Definition at line 240 of file at90usbxx2_driver.c.

void EVENT_USB_Device_ControlRequest ( void  )

EVENT_USB_Device_Connect() Please consult LUFA documentation.

Parameters:
none
Returns:
none
Return values:
none

Definition at line 283 of file at90usbxx2_driver.c.

void EVENT_USB_Device_Disconnect ( void  )

EVENT_USB_Device_Disconnect() Please consult LUFA documentation.

Parameters:
none
Returns:
none
Return values:
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

Parameters:
none
Returns:
short unsigned int
Return values:
Returnsa current value in the SPDR register

Definition at line 178 of file at90usbxx2_driver.c.

Here is the caller graph for this function:

void SET_CS ( void  )

SET_CS() Sets the SlaveSelect (SS) to low (/SS) and enables the ADC.

Parameters:
none
Returns:
none
Return values:
none

Definition at line 193 of file at90usbxx2_driver.c.

Here is the caller graph for this function:

SINT8 SPI_init ( void  )

SPI_init() Initialises the SPI hardware.

Parameters:
none
Returns:
short unsigned int
Return values:
Returns-1 on error ,0 else

Definition at line 86 of file at90usbxx2_driver.c.

Here is the caller graph for this function:

SINT8 SPIclkenable ( void  )

SPIclkenable() sends SPI clock when SPSR is ready.

Parameters:
none
Returns:
short signed int
Return values:
Returns-1 on error, 0 else

Definition at line 162 of file at90usbxx2_driver.c.

Here is the caller graph for this function:

SINT8 uC_init ( void  )

uC_init() Initialises uC sets external oscillator (16Mhz)

Parameters:
none
Returns:
short signed int
Return values:
Returns-1 on error , 0 else

Definition at line 111 of file at90usbxx2_driver.c.

Here is the caller graph for this function:

SINT8 USART_init ( void  )

USART_init() Initialises USART for Serial functionality.

Parameters:
none
Returns:
short signed int
Return values:
Returns-1 on error, 0 else

Definition at line 132 of file at90usbxx2_driver.c.

Here is the caller graph for this function:

void usb_control ( void  )

usb_control() Please consult LUFA documentation

Parameters:
none
Returns:
none
Return values:
none

Definition at line 297 of file at90usbxx2_driver.c.

Here is the caller graph for this function:

SINT8 USB_init ( void  )

USB_init() Initialises USB on AT90USB according to LUFA documentation.

Parameters:
none
Returns:
short signed int
Return values:
Returns-1 on error, 0 else

Definition at line 221 of file at90usbxx2_driver.c.

Here is the caller graph for this function:

void USB_re_fresh ( void  )

USB_refresh() Function to delay the 20ms (read LUFA documentation) of the USB_task.

Parameters:
none
Returns:
none

Definition at line 71 of file at90usbxx2_driver.c.

Here is the call graph for this function:

Here is the caller graph for this function:

SINT8 write_EndPoint ( UINT16  value)

write_EndPoint() Please consult LUFA documentation

Parameters:
unsignedint value - value to write to USB interface
Returns:
short signed int
Return values:
Returns-1 on error, 0 else

Definition at line 314 of file at90usbxx2_driver.c.

Here is the caller graph for this function:


Variable Documentation

USB_ClassInfo_CDC_Device_t PAMO_CDC_Interface
Initial value:
 {
                .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.

 All Data Structures Files Functions Variables Defines