summaryrefslogtreecommitdiff
path: root/digital/io/src/contact.c
diff options
context:
space:
mode:
authorNicolas Schodet2010-05-10 23:55:04 +0200
committerNicolas Schodet2010-05-10 23:55:04 +0200
commitdeb8c83c8142a06bd360494d50d97de75b025841 (patch)
treee038a14e49108c55b94071951f90fa1685116ef9 /digital/io/src/contact.c
parentafb7ca49a83e4e25501871cc3b9a91a31457c3aa (diff)
digital/io/src: skip faulty sensors
Diffstat (limited to 'digital/io/src/contact.c')
0 files changed, 0 insertions, 0 deletions
ocumentation) by the application code so that the address and size of a requested descriptor can be given * to the USB library. When the device recieves a Get Descriptor request on the control endpoint, this function * is called so that the descriptor details can be passed back and the appropriate descriptor sent back to the * USB host. */ uint16_t USB_GetDescriptor(const uint16_t wValue, const uint8_t wIndex, void** const DescriptorAddress) { const uint8_t DescriptorType = (wValue >> 8); const uint8_t DescriptorNumber = (wValue & 0xFF); void* Address = NULL; uint16_t Size = NO_DESCRIPTOR; switch (DescriptorType) { case DTYPE_Device: Address = DESCRIPTOR_ADDRESS(DeviceDescriptor); Size = sizeof(USB_Descriptor_Device_t); break; case DTYPE_Configuration: Address = DESCRIPTOR_ADDRESS(ConfigurationDescriptor); Size = sizeof(USB_Descriptor_Configuration_t); break; case DTYPE_String: