com.buglabs.bug.module.audio
Class AudioModuleControl
java.lang.Object
com.buglabs.bug.module.audio.AudioModuleControl
- All Implemented Interfaces:
- IAudioModuleControl, IModuleLEDController
public class AudioModuleControl
- extends java.lang.Object
- implements IModuleLEDController, IAudioModuleControl
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
AudioModuleControl
public AudioModuleControl(AudioControl audioControl)
setLEDGreen
public int setLEDGreen(boolean state)
throws java.io.IOException
- Specified by:
setLEDGreen in interface IAudioModuleControl- Specified by:
setLEDGreen in interface IModuleLEDController
- Throws:
java.io.IOException
setLEDRed
public int setLEDRed(boolean state)
throws java.io.IOException
- Specified by:
setLEDRed in interface IAudioModuleControl- Specified by:
setLEDRed in interface IModuleLEDController
- Parameters:
state - on = true, off = false;
- Returns:
- the return of the underlying ioctl.
- Throws:
java.io.IOException
setSpeaker
public int setSpeaker(boolean state)
throws java.io.IOException
- Specified by:
setSpeaker in interface IAudioModuleControl
- Throws:
java.io.IOException
speakerOff
public int speakerOff()
throws java.io.IOException
- Specified by:
speakerOff in interface IAudioModuleControl
- Throws:
java.io.IOException
speakerOn
public int speakerOn()
throws java.io.IOException
- Specified by:
speakerOn in interface IAudioModuleControl
- Throws:
java.io.IOException
getStatus
public int getStatus()
throws java.io.IOException
- Specified by:
getStatus in interface IAudioModuleControl
- Throws:
java.io.IOException
setActive
public int setActive(boolean state)
throws java.io.IOException
- Specified by:
setActive in interface IAudioModuleControl
- Throws:
java.io.IOException
activate
public int activate()
throws java.io.IOException
- Specified by:
activate in interface IAudioModuleControl
- Throws:
java.io.IOException
deactivate
public int deactivate()
throws java.io.IOException
- Specified by:
deactivate in interface IAudioModuleControl
- Throws:
java.io.IOException