|
Public Types |
| | 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 |
| | 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 |
| 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 |