My Marlin configs for Fabrikator Mini and CTC i3 Pro B
Вы не можете выбрать более 25 тем Темы должны начинаться с буквы или цифры, могут содержать дефисы(-) и должны содержать не более 35 символов.

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162
  1. /*----------------------------------------------------------------------------
  2. * U S B - K e r n e l
  3. *----------------------------------------------------------------------------
  4. * Name: cdcuser.h
  5. * Purpose: USB Communication Device Class User module Definitions
  6. * Version: V1.10
  7. *----------------------------------------------------------------------------
  8. * This software is supplied "AS IS" without any warranties, express,
  9. * implied or statutory, including but not limited to the implied
  10. * warranties of fitness for purpose, satisfactory quality and
  11. * noninfringement. Keil extends you a royalty-free right to reproduce
  12. * and distribute executable files created using this software for use
  13. * on NXP Semiconductors LPC microcontroller devices only. Nothing else
  14. * gives you the right to use this software.
  15. *
  16. * Copyright (c) 2009 Keil - An ARM Company. All rights reserved.
  17. *---------------------------------------------------------------------------*/
  18. #ifndef __CDCUSER_H__
  19. #define __CDCUSER_H__
  20. /* CDC buffer handling */
  21. extern uint32_t CDC_RdOutBuf(char *buffer, const uint32_t *length);
  22. extern uint32_t CDC_WrOutBuf(const char *buffer, uint32_t *length);
  23. extern uint32_t CDC_OutBufAvailChar(uint32_t *availChar);
  24. /* CDC Data In/Out Endpoint Address */
  25. #define CDC_DEP_IN 0x82
  26. #define CDC_DEP_OUT 0x02
  27. /* CDC Communication In Endpoint Address */
  28. #define CDC_CEP_IN 0x81
  29. /* CDC Requests Callback Functions */
  30. extern uint32_t CDC_SendEncapsulatedCommand(void);
  31. extern uint32_t CDC_GetEncapsulatedResponse(void);
  32. extern uint32_t CDC_SetCommFeature(unsigned short wFeatureSelector);
  33. extern uint32_t CDC_GetCommFeature(unsigned short wFeatureSelector);
  34. extern uint32_t CDC_ClearCommFeature(unsigned short wFeatureSelector);
  35. extern uint32_t CDC_GetLineCoding(void);
  36. extern uint32_t CDC_SetLineCoding(void);
  37. extern uint32_t CDC_SetControlLineState(unsigned short wControlSignalBitmap);
  38. extern uint32_t CDC_SendBreak(unsigned short wDurationOfBreak);
  39. /* CDC Bulk Callback Functions */
  40. extern void CDC_BulkIn(void);
  41. extern void CDC_BulkOut(void);
  42. /* CDC Notification Callback Function */
  43. extern void CDC_NotificationIn(void);
  44. /* CDC Initializtion Function */
  45. extern void CDC_Init();
  46. /* CDC prepare the SERAIAL_STATE */
  47. extern unsigned short CDC_GetSerialState(void);
  48. /* flow control */
  49. extern unsigned short CDC_DepInEmpty; // DataEndPoint IN empty
  50. #endif /* __CDCUSER_H__ */