UACSetState

Syntax

#include <cafe/uac.h>

int UACSetState(usb_mic_handle_t h_mic, usb_mic_state_t state, unsigned int value);

Parameters

h_mic Instance handle returned via usb_event_data_t data structure through the event handler of type usb_event_handler_t that is provided as an argument to UACInit and will contain a valid instance handle when the UAC device is attached.
state An enumerated value of type usb_mic_state_t that specifies which UAC device state variable to set.
value The state value to set, cast as an unsigned int.

Return Values

A value of zero indicates success and any other value the type of error that was encountered.

Description

This function is equivalent to USBMICSetState.

Do Not Call From

Background Do not call this function from the background.
Interrupt handler Do not call this function from any interrupt handler.
Exception handler Do not call this function from any exception handler.

See Also

USBMICSetState
UACInit
usb_mic_state_t
usb_mic_handle_t
Error Codes

Revision History

2013/05/29 Initial version.


CONFIDENTIAL