You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

16 lines
662 B

  1. #
  2. # This file is part of usb_protocol.
  3. #
  4. """ Convenience emitters for CDC descriptors. """
  5. from .. import emitter_for_format
  6. from ...types.descriptors.cdc import \
  7. HeaderDescriptor, UnionFunctionalDescriptor, ACMFunctionalDescriptor, \
  8. CallManagementFunctionalDescriptor
  9. # Create our emitters.
  10. HeaderDescriptorEmitter = emitter_for_format(HeaderDescriptor)
  11. UnionFunctionalDescriptorEmitter = emitter_for_format(UnionFunctionalDescriptor)
  12. ACMFunctionalDescriptorEmitter = emitter_for_format(ACMFunctionalDescriptor)
  13. CallManagementFunctionalDescriptorEmitter = emitter_for_format(CallManagementFunctionalDescriptor)