Prusa MINI Firmware overview
address.h File Reference

Go to the source code of this file.

Classes

struct  EpInfo
 
struct  UsbDeviceAddress
 
struct  UsbDevice
 
class  AddressPool
 
class  AddressPoolImpl< MAX_DEVICES_ALLOWED >
 

Macros

#define USB_NAK_MAX_POWER   15
 
#define USB_NAK_DEFAULT   14
 
#define USB_NAK_NOWAIT   1
 
#define USB_NAK_NONAK   0
 
#define bmUSB_DEV_ADDR_ADDRESS   0x07
 
#define bmUSB_DEV_ADDR_PARENT   0x38
 
#define bmUSB_DEV_ADDR_HUB   0x40
 
#define ADDR_ERROR_INVALID_INDEX   0xFF
 
#define ADDR_ERROR_INVALID_ADDRESS   0xFF
 

Typedefs

typedef void(* UsbDeviceHandleFunc) (UsbDevice *pdev)
 

Functions

struct EpInfo __attribute__ ((packed))
 

Variables

uint8_t bmSndToggle
 
uint8_t bmRcvToggle
 
uint8_t bmNakPower
 
uint8_t epAddr
 
uint8_t maxPktSize
 
union {
   uint8_t   epAttribs
 
__attribute__
 
uint8_t bmAddress
 
uint8_t bmParent
 
uint8_t bmHub
 
uint8_t bmReserved
 
EpInfoepinfo
 
UsbDeviceAddress address
 
uint8_t epcount
 
bool lowspeed
 

Macro Definition Documentation

◆ USB_NAK_MAX_POWER

#define USB_NAK_MAX_POWER   15

Copyright (C) 2011 Circuits At Home, LTD. All rights reserved.

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

Contact information

Circuits At Home, LTD Web : http://www.circuitsathome.com e-mail : suppo.nosp@m.rt@c.nosp@m.ircui.nosp@m.tsat.nosp@m.home..nosp@m.com

◆ USB_NAK_DEFAULT

#define USB_NAK_DEFAULT   14

◆ USB_NAK_NOWAIT

#define USB_NAK_NOWAIT   1

◆ USB_NAK_NONAK

#define USB_NAK_NONAK   0

◆ bmUSB_DEV_ADDR_ADDRESS

#define bmUSB_DEV_ADDR_ADDRESS   0x07

◆ bmUSB_DEV_ADDR_PARENT

#define bmUSB_DEV_ADDR_PARENT   0x38

◆ bmUSB_DEV_ADDR_HUB

#define bmUSB_DEV_ADDR_HUB   0x40

◆ ADDR_ERROR_INVALID_INDEX

#define ADDR_ERROR_INVALID_INDEX   0xFF

◆ ADDR_ERROR_INVALID_ADDRESS

#define ADDR_ERROR_INVALID_ADDRESS   0xFF

Typedef Documentation

◆ UsbDeviceHandleFunc

typedef void(* UsbDeviceHandleFunc) (UsbDevice *pdev)

Function Documentation

◆ __attribute__()

struct EpInfo __attribute__ ( (packed)  )

Variable Documentation

◆ bmSndToggle

uint8_t bmSndToggle

◆ bmRcvToggle

uint8_t bmRcvToggle

◆ bmNakPower

uint8_t bmNakPower

◆ epAddr

uint8_t epAddr

◆ maxPktSize

uint8_t maxPktSize

◆ epAttribs

uint8_t epAttribs

◆ __attribute__

◆ bmAddress

uint8_t bmAddress

◆ bmParent

uint8_t bmParent

◆ bmHub

uint8_t bmHub

◆ bmReserved

uint8_t bmReserved

◆ devAddress

uint8_t devAddress

◆ epinfo

EpInfo* epinfo

◆ address

◆ epcount

uint8_t epcount

◆ lowspeed

bool lowspeed