#include <vblasterlid.h>
List of all members.
Public Types |
enum | Command {
Command_PHONE_OFF = 0x01,
Command_PHONE_ON = 0x02,
Command_RING_ON = 0x03,
Command_RING_OFF = 0x04,
Command_VOUT_START = 0x05,
Command_VOUT_STOP = 0x06,
Command_VINP_START = 0x07,
Command_VINP_STOP = 0x08,
Command_UNKNOWN_1 = 0x09,
Command_UNKNOWN_2 = 0x0a,
Command_UNKNOWN_3 = 0x0b,
Command_HS_OFFHOOK = 0x0c,
Command_HS_ONHOOK = 0x0d,
Command_SETUP_MODE = 0x0e,
Command_VOUT_DONE = 0x0f,
Command_0x10 = 0x10,
Command_0x11 = 0x11,
Command_MUTE_ON = 0x12,
Command_MUTE_OFF = 0x13,
Command_VOL_0 = 0x34,
Command_VOL_1 = 0x35,
Command_VOL_2 = 0x36,
Command_VOL_3 = 0x37,
Command_VOL_4 = 0x38,
Command_VOL_5 = 0x39,
Command_VOL_6 = 0x3a
} |
enum | Status {
Status_HOOK_OFF = 0x01,
Status_HOOK_ON = 0x02,
Status_RINGING_ON = 0x05,
Status_RINGING_OFF = 0x06,
Status_HEADSET_IN = 0x08,
Status_HEADSET_OUT = 0x09,
Status_0x0a = 0x0a,
Status_VOUT_DONE = 0x0c,
Status_Empty
} |
Public Member Functions |
| VoipBlasterInterface () |
BOOL | IsDevicePresent (PINDEX deviceIndex) |
BOOL | OpenCommand (PINDEX deviceIndex) |
BOOL | WriteCommand (Command cmd) |
Status | ReadStatus (const PTimeInterval dur=0) |
BOOL | CloseCommand () |
BOOL | OpenData () |
BOOL | WriteData (const void *data, PINDEX len) |
int | ReadData (void *data, PINDEX len, const PTimeInterval dur=0) |
void | Flush (const PTimeInterval wait=500) |
BOOL | CloseData () |
| PDECLARE_NOTIFIER (PTimer, VoipBlasterInterface, CloseTimeout) |
Protected Attributes |
PINDEX | deviceIndex |
Member Enumeration Documentation
- Enumerator:
Command_PHONE_OFF |
|
Command_PHONE_ON |
|
Command_RING_ON |
|
Command_RING_OFF |
|
Command_VOUT_START |
|
Command_VOUT_STOP |
|
Command_VINP_START |
|
Command_VINP_STOP |
|
Command_UNKNOWN_1 |
|
Command_UNKNOWN_2 |
|
Command_UNKNOWN_3 |
|
Command_HS_OFFHOOK |
|
Command_HS_ONHOOK |
|
Command_SETUP_MODE |
|
Command_VOUT_DONE |
|
Command_0x10 |
|
Command_0x11 |
|
Command_MUTE_ON |
|
Command_MUTE_OFF |
|
Command_VOL_0 |
|
Command_VOL_1 |
|
Command_VOL_2 |
|
Command_VOL_3 |
|
Command_VOL_4 |
|
Command_VOL_5 |
|
Command_VOL_6 |
|
- Enumerator:
Status_HOOK_OFF |
|
Status_HOOK_ON |
|
Status_RINGING_ON |
|
Status_RINGING_OFF |
|
Status_HEADSET_IN |
|
Status_HEADSET_OUT |
|
Status_0x0a |
|
Status_VOUT_DONE |
|
Status_Empty |
|
Constructor & Destructor Documentation
VoipBlasterInterface::VoipBlasterInterface |
( |
| ) |
|
Member Function Documentation
BOOL VoipBlasterInterface::CloseCommand |
( |
| ) |
|
BOOL VoipBlasterInterface::CloseData |
( |
| ) |
|
void VoipBlasterInterface::Flush |
( |
const PTimeInterval |
wait = 500 | ) |
|
BOOL VoipBlasterInterface::IsDevicePresent |
( |
PINDEX |
deviceIndex | ) |
|
BOOL VoipBlasterInterface::OpenCommand |
( |
PINDEX |
deviceIndex | ) |
|
BOOL VoipBlasterInterface::OpenData |
( |
| ) |
|
int VoipBlasterInterface::ReadData |
( |
void * |
data, |
|
|
PINDEX |
len, |
|
|
const PTimeInterval |
dur = 0 |
|
) |
| |
Status VoipBlasterInterface::ReadStatus |
( |
const PTimeInterval |
dur = 0 | ) |
|
BOOL VoipBlasterInterface::WriteCommand |
( |
Command |
cmd | ) |
|
BOOL VoipBlasterInterface::WriteData |
( |
const void * |
data, |
|
|
PINDEX |
len |
|
) |
| |
Member Data Documentation
The documentation for this class was generated from the following file: