Download DECT Shield for Arduino Electrical and Computer

Transcript
Function:
Arguments:
Return:
Description:
SetMicrophoneGain
nGain - Microphone gain from 0 to 15.
Nothing.
This function changes the microphone gain from 0 (0dB) to 15 (30dB).
Code Example:
void loop() {
// ...
// Set the microphone gain to its maximum sensitivity of 30dB
dect.SetMicrophoneGain(15);
// ...
}
Function:
Arguments:
Return:
Description:
GetAudioConfigs
None.
stAudioConfigs structure with the current audio configurations.
This function returns the shield audio configurations. This information can also be
obtained using the GetConfigs function.
Code Example:
void loop() {
// ...
// Get shield audio configurations
stAudioConfigs sConfigs = dect.GetAudioConfigs();
// Prints the current speaker volume
Serial.println(sConfigs.sSpeaker.nVolume, DEC);
// ...
}
D.7 MICROSD GROUP FUNCTIONS
This group includes the following functions:
•
•
void AccessmicroSD(void);
void ReleasemicroSD(void);
The description of each structure and function present in this group follows.
Function:
Arguments:
Return:
Description:
Remarks:
AccessmicroSD
None.
Nothing.
This function enables to Arduino to access the shield’s microSD slot.
Other shields can’t use the SPI while the shield is granting access to the Arduino.
86