#include "conf_usb.h"
Macros | |
#define | USB_HID_REPORT_DESC_KBD 39 |
Usb HID Report Descriptor Keyboard. More... | |
Functions | |
void | audio_micro_get_mute (void) |
void | audio_micro_get_vol_cur (void) |
void | audio_micro_get_vol_max (void) |
void | audio_micro_get_vol_min (void) |
void | audio_micro_get_vol_res (void) |
void | audio_micro_set_mute (void) |
Micro control. More... | |
void | audio_micro_set_volume (void) |
void | audio_speaker_get_mute (void) |
void | audio_speaker_get_vol_cur (void) |
void | audio_speaker_get_vol_max (void) |
void | audio_speaker_get_vol_min (void) |
void | audio_speaker_get_vol_res (void) |
void | audio_speaker_set_mute (void) |
Speaker control. More... | |
void | audio_speaker_set_sample_freq (void) |
void | audio_speaker_set_volume (void) |
void | usb_user_endpoint_init (uint8_t) |
This function configures the endpoints of the device application. More... | |
bool | usb_user_get_descriptor (uint8_t, uint8_t) |
This function returns the size and the pointer on a user information structure. More... | |
uint8_t | usb_user_interface_get (uint16_t wInterface) |
void | usb_user_interface_reset (uint16_t wInterface, uint8_t alternate_setting) |
bool | usb_user_read_request (uint8_t, uint8_t) |
This function is called by the standard USB read request function when the USB request is not supported. More... | |
#define USB_HID_REPORT_DESC_KBD 39 |
Usb HID Report Descriptor Keyboard.
void audio_micro_get_mute | ( | void | ) |
void audio_micro_get_vol_cur | ( | void | ) |
void audio_micro_get_vol_max | ( | void | ) |
void audio_micro_get_vol_min | ( | void | ) |
void audio_micro_get_vol_res | ( | void | ) |
void audio_micro_set_mute | ( | void | ) |
Micro control.
References b_micro_mute, EP_CONTROL, Is_usb_control_in_ready, Is_usb_control_out_received, TASKS_SCHEDULE, Usb_ack_control_in_ready_send, Usb_ack_control_out_received_free, Usb_read_endpoint_data, and Usb_reset_endpoint_fifo_access.
Referenced by usb_user_read_request().
void audio_micro_set_volume | ( | void | ) |
void audio_speaker_get_mute | ( | void | ) |
void audio_speaker_get_vol_cur | ( | void | ) |
void audio_speaker_get_vol_max | ( | void | ) |
void audio_speaker_get_vol_min | ( | void | ) |
void audio_speaker_get_vol_res | ( | void | ) |
void audio_speaker_set_mute | ( | void | ) |
Speaker control.
References audio_mixer_dacs_set_volume_direct(), audio_mixer_mute_audio, b_speaker_mute, EP_CONTROL, Is_usb_control_in_ready, Is_usb_control_out_received, s16_speaker_volume, SPEAKER_VOL_MIN, TASKS_SCHEDULE, Usb_ack_control_in_ready_send, Usb_ack_control_out_received_free, Usb_read_endpoint_data, and Usb_reset_endpoint_fifo_access.
Referenced by usb_user_read_request().
void audio_speaker_set_sample_freq | ( | void | ) |
References audio_mixer_dacs_flush_direct(), device_audio_disable_microphone(), device_audio_enable_microphone(), EP_CONTROL, Is_usb_control_in_ready, Is_usb_control_out_received, LSB0, LSB1, LSB2, TASKS_SCHEDULE, Usb_ack_control_in_ready_send, Usb_ack_control_out_received_free, Usb_ack_setup_received_free, Usb_read_endpoint_data, Usb_reset_endpoint_fifo_access, and usb_stream_init().
Referenced by usb_user_read_request().
void audio_speaker_set_volume | ( | void | ) |
References audio_mixer_dacs_set_volume_direct(), EP_CONTROL, Is_usb_control_in_ready, Is_usb_control_out_received, LSB, max, min, MSB, s16_speaker_volume, s16_usb_speaker_volume, SPEAKER_VOL_MAX, SPEAKER_VOL_MIN, TASKS_SCHEDULE, Usb_ack_control_in_ready_send, Usb_ack_control_out_received_free, Usb_read_endpoint_data, Usb_reset_endpoint_fifo_access, and volume_usb_to_appli().
Referenced by usb_user_read_request().
const S_usb_user_configuration_descriptor usb_conf_desc |
Referenced by usb_user_read_request().
const S_usb_device_descriptor usb_dev_desc |
const uint8_t usb_hid_report_descriptor_kbd[USB_HID_REPORT_DESC_KBD] |
Referenced by usb_user_read_request().
const S_usb_language_id usb_user_language_id |
Referenced by usb_user_get_descriptor().
const S_usb_manufacturer_string_descriptor usb_user_manufacturer_string_descriptor |
Referenced by usb_user_get_descriptor().
const S_usb_product_string_descriptor usb_user_product_string_descriptor |
Referenced by usb_user_get_descriptor().
const S_usb_serial_number usb_user_serial_number |
Referenced by usb_user_get_descriptor().