LPCOpen Platform
LPCOpen Platform for NXP LPC Microcontrollers
 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Pipe_LPC.c File Reference
#include "../USBMode.h"
#include "../Pipe.h"

Go to the source code of this file.

Functions

bool Pipe_ConfigurePipe (const uint8_t corenum, const uint8_t Number, const uint8_t Type, const uint8_t Token, const uint8_t EndpointNumber, const uint16_t Size, const uint8_t Banks)
 Configures the specified pipe number with the given pipe type, token, target endpoint number in the attached device, bank size and banking mode.
 
void Pipe_ClosePipe (const uint8_t corenum, uint8_t pipenum)
 
void Pipe_ClearPipes (void)
 
bool Pipe_IsEndpointBound (const uint8_t EndpointAddress)
 Determines if a pipe has been bound to the given device endpoint address. If a pipe which is bound to the given endpoint is found, it is automatically selected.
 
uint8_t Pipe_WaitUntilReady (const uint8_t corenum)
 Spin-loops until the currently selected non-control pipe is ready for the next packed of data to be read or written to it, aborting in the case of an error condition (such as a timeout or device disconnect).
 
bool Pipe_IsINReceived (const uint8_t corenum)
 Determines if a packet has been received on the currently selected IN pipe from the attached device.
 

Variables

uint8_t pipeselected [MAX_USB_CORE]
 
USB_Pipe_Data_t PipeInfo [MAX_USB_CORE][PIPE_TOTAL_PIPES]
 
HCD_USB_SPEED hostportspeed [MAX_USB_CORE]
 
uint8_t hostselected
 

Function Documentation

void Pipe_ClearPipes ( void  )

Definition at line 94 of file Pipe_LPC.c.