PDL for FM4  Version1.2
Peripheral Driverl Library for FM4
UsbDevicePrinter.h File Reference
#include "usb.h"
#include "usbdevice.h"
Include dependency graph for UsbDevicePrinter.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Macros

#define USBDEVICEPRINTER_ENABLED   OFF
 
#define BUFFER_SIZE_ENDPOINTOUT   512
 

Typedefs

typedef void(* usbdeviceprinter_datareceived_func_ptr_t )(uint8_t *pu8DataBuffer, uint32_t u32DataLength)
 
typedef void(* usbdeviceprinter_datasent_func_ptr_t )(void)
 

Functions

void UsbDevicePrinter_Init (stc_usbn_t *pstcUsb)
 
uint32_t UsbDevicePrinter_GetReceivedData (uint8_t **ppu8Buffer)
 
boolean_t UsbDevicePrinter_SendData (stc_usbn_t *pstcUsb, uint8_t *pu8Buffer, uint32_t u32DataSize, en_usbsend_mode_t enMode)
 
uint8_t UsbDevicePrinter_DataSent (void)
 
void UsbDevicePrinter_SetReceivedCallback (usbdeviceprinter_datareceived_func_ptr_t pstnCallback)
 
void UsbDevicePrinter_SetSentCallback (usbdeviceprinter_datasent_func_ptr_t pstnCallback)
 

Detailed Description

CONST USB_ASSISTANT_OFF

A detailed description is available at USB Device Printer Module description

History:

  • 2013-08-12 1.0 MSc First version
  • 2013-10-14 1.1 MSc PDL support added

Definition in file UsbDevicePrinter.h.

Macro Definition Documentation

#define USBDEVICEPRINTER_ENABLED   OFF

Definition at line 64 of file UsbDevicePrinter.h.