source: rtos_arduino/trunk/arduino_lib/libraries/GSM/src/GSM3ShieldV2.h@ 136

Last change on this file since 136 was 136, checked in by ertl-honda, 8 years ago

ライブラリとOS及びベーシックなサンプルの追加.

File size: 3.3 KB
Line 
1/*
2This file is part of GSM3ShieldV2 library developed by Arduino.org (http://arduino.org).
3
4 GSM3ShieldV2 library is free software: you can redistribute it and/or modify
5 it under the terms of the GNU General Public License as published by
6 the Free Software Foundation, either version 3 of the License, or
7 (at your option) any later version.
8
9 GSM3ShieldV2 library is distributed in the hope that it will be useful,
10 but WITHOUT ANY WARRANTY; without even the implied warranty of
11 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12 GNU General Public License for more details.
13
14 You should have received a copy of the GNU General Public License
15 along with GSM3ShieldV2 library. If not, see <http://www.gnu.org/licenses/>.
16*/
17
18#ifndef _GSM3SHIELDV2_
19#define _GSM3SHIELDV2_
20
21#include <GSM3ShieldV1AccessProvider.h>
22#include <GSM3ShieldV1DirectModemProvider.h>
23#include <GSM.h>
24#include <Arduino.h>
25#include <stdlib.h>
26#include <string.h>
27#include <DEFAULT.h>
28#include <GSM3ShieldV1ModemCore.h>
29
30class GSM3ShieldV2
31{
32
33 private:
34
35 GSM3ShieldV1DirectModemProvider modemAccess;
36 GSM3ShieldV1AccessProvider gsm; // Access provider to GSM/GPRS network
37
38 public:
39
40 /** Constructor */
41 GSM3ShieldV2();
42 GSM3ShieldV2(bool db);
43
44 bool debug=false;
45
46 String getPosition(); // Get Current Location
47
48 // Aded for voice call debug
49 String speakerLoudness(int level); // set the speaker Volume
50 // 0: Low speaker volume
51 // 1: Low speaker volume
52 // 2: Medium speaker volume
53 // 3: High speaker volume
54
55 String speakerMode(int mode); // Set the speaker on mode
56 // 0: Speaker is always off
57 // 1: Speaker is on until TA inform TE that carrier has been detected
58 // 2: Speaker is always on when TA is off-hook
59
60 String alertSoundMode(int mode); // silent the alert sound
61 // 0: Normal mode
62 // 1: Silent mode
63
64 String ringerSoundLevel(int level); // Set the ringer volume (0-100)
65
66 String loudSpeakerVolumeLevel(int level); // Set the Speaker volume (0-100)
67
68 String muteControl(int mode); // switch on or off mute
69 // 0: Mute off
70 // 1: Mute on
71
72 String microphoneGainLevel(int channel, int gain); // Set the microphone channel and level
73 // Channel:
74 // 0: Normal Microphone
75 // 1: Headset Microphone
76 // 2: Loudspeaker Microphone
77 // Gain: (0-15)
78
79 String swapAudioChannel(int channel); // Set the audio channel
80 // 0: Normal audio channel
81 // 1: headset audio channel
82 // 2: Loudspeaker audio chanel
83
84 void CommandEcho(int value); // 0: command echo OFF
85 // 1: command echo ON
86
87};
88
89#endif;
Note: See TracBrowser for help on using the repository browser.