Functions | |
bool | host_user_check_class (const uint8_t *) |
This function is called by the standard USB host_check_class() function when the Host is analyzing the configuration descriptor previously sent by a USB Device. More... | |
void | host_user_check_class_init (void) |
Initialization. More... | |
bool host_user_check_class | ( | const uint8_t * | descriptor | ) |
This function is called by the standard USB host_check_class() function when the Host is analyzing the configuration descriptor previously sent by a USB Device.
The function will be called for each descriptor found in the configuration descriptor.
References cs_feature_unit_t::bmaControls, CS_INTERFACE, FEATURE_UNIT_SUB_TYPE, FORMAT_SUB_TYPE, host_audio_task_data_t::g_cs_feature, host_audio_task_data_t::g_cs_num_features_unit, host_audio_task_data_t::g_n_bits_per_sample, host_audio_task_data_t::g_n_channels, host_audio_task_data_t::g_sample_freq, Get_interface_number, HEADER_SUB_TYPE, host_audio_task_data, i, INTERFACE_DESCRIPTOR, max, MAX_BMA_CONTROLS, MAX_INTERFACE_SUPPORTED, cs_feature_unit_t::n_bmaControls, n_interface, NULL, num, OFFSET_FIELD_DESCRIPTOR_SUBTYPE, OFFSET_FIELD_DESCRIPTOR_TYPE, state, and cs_feature_unit_t::unit.
void host_user_check_class_init | ( | void | ) |
Initialization.
References n_interface, and state.