4.6.13.2 Functions
RETURN_CODE_t USB_DescriptorPointersSet (USB_DESCRIPTOR_POINTERS_t *descriptorPointersPtr)
Handles Descriptor pointer setup. Sets the address to the application descriptor pointers. Checks if the device pointer and a pointer to the start of the application configuration(s) are set before saving the address to the USB Core Stack.
RETURN_CODE_t USB_DescriptorConfigurationEnable (uint8_t configurationValue)
Enables endpoint configuration descriptor.
uint8_t USB_DescriptorActiveConfigurationValueGet (void)
Gets the active configuration value.
bool USB_DescriptorActiveConfigurationSelfPoweredGet (void)
Gets the Self-Powered setting from the active configuration.
bool USB_DescriptorActiveConfigurationRemoteWakeupGet (void)
Gets the Remote Wake-up setting from the active configuration.
RETURN_CODE_t ConfigurationPointerGet (uint8_t configurationValue, USB_CONFIGURATION_DESCRIPTOR_t **configurationPtr)
Collects the configuration pointer.
RETURN_CODE_t NextDescriptorPointerGet (USB_DESCRIPTOR_TYPE_t descriptorType, USB_DESCRIPTOR_HEADER_t **descriptorHeaderPtr)
Gets the next descriptor.
RETURN_CODE_t USB_DescriptorInterfaceConfigure (uint8_t interfaceNumber, uint8_t alternateSetting, bool enable)
Enables or Disables an Interface Descriptor.
RETURN_CODE_t ActiveAlternateSettingSet (uint8_t interfaceNumber, uint8_t alternateSetting)
Set the active alternate interface number for an interface.
RETURN_CODE_t ActiveAlternateSettingGet (uint8_t interfaceNumber, uint8_t *alternateSetting)
Get the active alternate interface number for an interface.
RETURN_CODE_t DescriptorEndpointsConfigure (USB_INTERFACE_DESCRIPTOR_t *interfacePtr, bool enable)
Configures the endpoints as given in the descriptor.
RETURN_CODE_t USB_DescriptorPointerGet (USB_DESCRIPTOR_TYPE_t descriptor, uint8_t attribute, uint8_t **descriptorPtr, uint16_t *descriptorLength)
Gets the pointer to the descriptor.
RETURN_CODE_t USB_DescriptorStringPointerGet (uint8_t stringIndex, uint16_t langID, uint8_t **descriptorAddressPtr, uint16_t *descriptorLength)
Gets the pointer to the string descriptor.