Manage USB device endpoint configurations. More...
Functions | |
| bool | valid_configuration_index (int8_t index) |
| bool | set_configuration_index (int8_t index) |
| int8_t | get_configuration_index () |
| const struct configuration_t * | get_configuration_P (int8_t index) |
Manage USB device endpoint configurations.
| int8_t get_configuration_index | ( | ) |
Get the current configuration index.
| bool set_configuration_index | ( | int8_t | index | ) |
Select device configuration with index index.
true if the new configuration was selected, false otherwise. | bool valid_configuration_index | ( | int8_t | index | ) |
Check whether the given configuration index index is valid. Index 0 will always return true as this is required by all USB devices.