Main Page | Modules | Class Hierarchy | Alphabetical List | Data Structures | File List | Data Fields | Globals | Related Pages

otMultimediaShield Class Reference
[Multimedia Shield - Driver for MP3 player, FM Radio, microphone sampler and player, Multimedia Shield - Driver for MP3 player, FM Radio, microphone sampler and player]

Class to manage a driver for MP3 player, FM Radio, microphone sampler and player.

#include <otMultimediaShield.h>

Inheritance diagram for otMultimediaShield:

otMCP23008

Public Types

typedef otMultimediaShield::AudioSelection AudioSelection
typedef otMultimediaShield::OutputSelection OutputSelection
typedef otMultimediaShield::VolumeChanSelection VolumeChanSelection
enum  AudioSelection { CH_MP3, CH_RADIO, CH_DAC, CH_AUX }
enum  OutputSelection { OP_1, OP_2, OP_3 }
enum  VolumeChanSelection { VL_RIGHT, VL_LEFT }

Public Member Functions

 otMultimediaShield ()
void init (U8 addressIndex=0)
void selectAudioChannel (AudioSelection sel)
void setOutput (OutputSelection op, bool ena)
void setVolume (VolumeChanSelection ch, U8 vol)
U8 volume (VolumeChanSelection ch)

Member Typedef Documentation

typedef otMultimediaShield::AudioSelection otMultimediaShield.AudioSelection
 

typedef otMultimediaShield::OutputSelection otMultimediaShield.OutputSelection
 

typedef otMultimediaShield::VolumeChanSelection otMultimediaShield.VolumeChanSelection
 


Member Enumeration Documentation

enum otMultimediaShield::AudioSelection
 

Enumeration values:
CH_MP3  MP3 player.
CH_RADIO  Radio FM Si4703.
CH_DAC  Audio DAC.
CH_AUX  Audio aux.

enum otMultimediaShield::OutputSelection
 

Enumeration values:
OP_1  Output 1.
OP_2  Output 2.
OP_3  Output 3.

enum otMultimediaShield::VolumeChanSelection
 

Enumeration values:
VL_RIGHT  Volume right.
VL_LEFT  Volume left.


Constructor & Destructor Documentation

otMultimediaShield.otMultimediaShield (   ) 
 

Init the class


Member Function Documentation

void otMultimediaShield.init (  U8  addressIndex = 0  ) 
 

Init the shield

Parameters:
addressIndex Select which device is selected in the range 0:7

Reimplemented from otMCP23008.

void otMultimediaShield.selectAudioChannel (  AudioSelection  sel  ) 
 

void otMultimediaShield.setOutput (  OutputSelection  op,
bool  ena
) 
 

void otMultimediaShield.setVolume (  VolumeChanSelection  ch,
U8  vol
) 
 

U8 otMultimediaShield.volume (  VolumeChanSelection  ch  ) 
 


The documentation for this class was generated from the following file: footer
otStudio - Library Reference - (C) 2020-25 Officina Turini, All Rights Reserved
Document built with Doxygen 1.4.0