# DahdiLineInterfaceDevice::ChannelInfo Struct Reference

`#include <dahdi_ep.h>`

Inheritance diagram for DahdiLineInterfaceDevice::ChannelInfo:

[legend]

## Public Member Functions

| ChannelInfo (dahdi_params &parms)
virtual | ~ChannelInfo ()
virtual bool | Open (int samplesPerBlock)
virtual bool | Close ()
void | ThreadMain ()
virtual bool | IsFXS ()
virtual bool | IsOffHook ()
virtual bool | IsAudioEnabled () const
virtual bool | IsMediaRunning () const
virtual bool | IsTonePlaying ()
virtual bool | PlayTone (CallProgressTones tone)
virtual bool | StopTone ()
virtual bool | EnableAudio (bool enable)
virtual bool | SetOffHook (bool newState)
virtual PINDEX | GetReadFrameSize ()
virtual PINDEX | GetWriteFrameSize ()
virtual bool | SetReadFrameSize (PINDEX frameSize)
virtual bool | SetWriteFrameSize (PINDEX frameSize)
virtual bool | ReadFrame (void *buf, PINDEX &count)
virtual bool | WriteFrame (const void *buf, PINDEX count, PINDEX &written)
virtual bool | InternalReadFrame (void *buf)
virtual bool | SetReadFormat (const OpalMediaFormat &mediaFormat)
virtual bool | SetWriteFormat (const OpalMediaFormat &mediaFormat)
virtual bool | StopReading ()
virtual bool | StopWriting ()
virtual bool | StartMedia ()
virtual bool | StopMedia ()
virtual char | ReadDTMF ()
virtual bool | LookForEvent ()
virtual bool | DetectTones (void *buffer, int len)
virtual bool | SetRecordVolume (unsigned volume)
virtual bool | SetPlayVolume (unsigned volume)
virtual bool | GetRecordVolume (unsigned &volume)
virtual bool | GetPlayVolume (unsigned &volume)
virtual void | OnHook ()
virtual void | OffHook ()
virtual void | Flush ()
short | DecodeSample (BYTE sample)
BYTE | EncodeSample (short sample)

## Data Fields

int | m_spanNumber
int | m_channelNumber
int | m_chanPos
bool | m_hasHardwareToneDetection
PDTMFDecoder | m_dtmfDecoder
PMutex | m_mutex
int | m_fd
int | m_samplesPerBlock
bool | m_audioEnable
bool | m_mediaStarted
BYTE * | m_toneBuffer
int | m_toneBufferLen
int | m_toneBufferPos
bool | m_isALaw
PMutex | m_dtmfMutex
std::queue< char > | m_dtmfQueue
int | m_writeVol
int | m_readVol
std::vector< BYTE > | m_readBuffer
std::vector< BYTE > | m_writeBuffer

## Constructor & Destructor Documentation

DahdiLineInterfaceDevice::ChannelInfo::ChannelInfo | ( | dahdi_params & | parms | ) |

virtual DahdiLineInterfaceDevice::ChannelInfo::~ChannelInfo | ( |  | ) | `[virtual]`

## Member Function Documentation

virtual bool DahdiLineInterfaceDevice::ChannelInfo::Close | ( |  | ) | `[virtual]`

short DahdiLineInterfaceDevice::ChannelInfo::DecodeSample | ( | BYTE | sample | ) |

virtual bool DahdiLineInterfaceDevice::ChannelInfo::DetectTones | ( | void * | buffer,
|  | int | len |
| ) |  |  | `[virtual]`

virtual bool DahdiLineInterfaceDevice::ChannelInfo::EnableAudio | ( | bool | enable | ) | `[virtual]`

BYTE DahdiLineInterfaceDevice::ChannelInfo::EncodeSample | ( | short | sample | ) |

virtual void DahdiLineInterfaceDevice::ChannelInfo::Flush | ( |  | ) | `[virtual]`

virtual bool DahdiLineInterfaceDevice::ChannelInfo::GetPlayVolume | ( | unsigned & | volume | ) | `[inline, virtual]`

virtual PINDEX DahdiLineInterfaceDevice::ChannelInfo::GetReadFrameSize | ( |  | ) | `[inline, virtual]`

virtual bool DahdiLineInterfaceDevice::ChannelInfo::GetRecordVolume | ( | unsigned & | volume | ) | `[inline, virtual]`

virtual PINDEX DahdiLineInterfaceDevice::ChannelInfo::GetWriteFrameSize | ( |  | ) | `[inline, virtual]`

virtual bool DahdiLineInterfaceDevice::ChannelInfo::InternalReadFrame | ( | void * | buf | ) | `[virtual]`

virtual bool DahdiLineInterfaceDevice::ChannelInfo::IsAudioEnabled | ( |  | ) | const`[inline, virtual]`

virtual bool DahdiLineInterfaceDevice::ChannelInfo::IsFXS | ( |  | ) | `[inline, virtual]`

Reimplemented in DahdiLineInterfaceDevice::FXSChannelInfo.

virtual bool DahdiLineInterfaceDevice::ChannelInfo::IsMediaRunning | ( |  | ) | const`[inline, virtual]`

virtual bool DahdiLineInterfaceDevice::ChannelInfo::IsOffHook | ( |  | ) | `[inline, virtual]`

Reimplemented in DahdiLineInterfaceDevice::FXSChannelInfo.

virtual bool DahdiLineInterfaceDevice::ChannelInfo::IsTonePlaying | ( |  | ) | `[virtual]`

virtual bool DahdiLineInterfaceDevice::ChannelInfo::LookForEvent | ( |  | ) | `[virtual]`

virtual void DahdiLineInterfaceDevice::ChannelInfo::OffHook | ( |  | ) | `[inline, virtual]`

Reimplemented in DahdiLineInterfaceDevice::FXSChannelInfo.

virtual void DahdiLineInterfaceDevice::ChannelInfo::OnHook | ( |  | ) | `[inline, virtual]`

Reimplemented in DahdiLineInterfaceDevice::FXSChannelInfo.

virtual bool DahdiLineInterfaceDevice::ChannelInfo::Open | ( | int | samplesPerBlock | ) | `[virtual]`

virtual bool DahdiLineInterfaceDevice::ChannelInfo::PlayTone | ( | CallProgressTones | tone | ) | `[virtual]`

virtual char DahdiLineInterfaceDevice::ChannelInfo::ReadDTMF | ( |  | ) | `[virtual]`

virtual bool DahdiLineInterfaceDevice::ChannelInfo::ReadFrame | ( | void * | buf,
|  | PINDEX & | count |
| ) |  |  | `[virtual]`

virtual bool DahdiLineInterfaceDevice::ChannelInfo::SetOffHook | ( | bool | newState | ) | `[inline, virtual]`

virtual bool DahdiLineInterfaceDevice::ChannelInfo::SetPlayVolume | ( | unsigned | volume | ) | `[inline, virtual]`

virtual bool DahdiLineInterfaceDevice::ChannelInfo::SetReadFormat | ( | const OpalMediaFormat & | mediaFormat | ) | `[virtual]`

virtual bool DahdiLineInterfaceDevice::ChannelInfo::SetReadFrameSize | ( | PINDEX | frameSize | ) | `[inline, virtual]`

virtual bool DahdiLineInterfaceDevice::ChannelInfo::SetRecordVolume | ( | unsigned | volume | ) | `[inline, virtual]`

virtual bool DahdiLineInterfaceDevice::ChannelInfo::SetWriteFormat | ( | const OpalMediaFormat & | mediaFormat | ) | `[virtual]`

virtual bool DahdiLineInterfaceDevice::ChannelInfo::SetWriteFrameSize | ( | PINDEX | frameSize | ) | `[inline, virtual]`

virtual bool DahdiLineInterfaceDevice::ChannelInfo::StartMedia | ( |  | ) | `[virtual]`

virtual bool DahdiLineInterfaceDevice::ChannelInfo::StopMedia | ( |  | ) | `[virtual]`

virtual bool DahdiLineInterfaceDevice::ChannelInfo::StopReading | ( |  | ) | `[virtual]`

virtual bool DahdiLineInterfaceDevice::ChannelInfo::StopTone | ( |  | ) | `[virtual]`

virtual bool DahdiLineInterfaceDevice::ChannelInfo::StopWriting | ( |  | ) | `[virtual]`

void DahdiLineInterfaceDevice::ChannelInfo::ThreadMain | ( |  | ) |

virtual bool DahdiLineInterfaceDevice::ChannelInfo::WriteFrame | ( | const void * | buf,
|  | PINDEX | count,
|  | PINDEX & | written |
| ) |  |  | `[virtual]`

## Field Documentation

bool DahdiLineInterfaceDevice::ChannelInfo::m_audioEnable

int DahdiLineInterfaceDevice::ChannelInfo::m_channelNumber

int DahdiLineInterfaceDevice::ChannelInfo::m_chanPos

PDTMFDecoder DahdiLineInterfaceDevice::ChannelInfo::m_dtmfDecoder

PMutex DahdiLineInterfaceDevice::ChannelInfo::m_dtmfMutex

std::queue<char> DahdiLineInterfaceDevice::ChannelInfo::m_dtmfQueue

int DahdiLineInterfaceDevice::ChannelInfo::m_fd

bool DahdiLineInterfaceDevice::ChannelInfo::m_hasHardwareToneDetection

bool DahdiLineInterfaceDevice::ChannelInfo::m_isALaw

bool DahdiLineInterfaceDevice::ChannelInfo::m_mediaStarted

PMutex DahdiLineInterfaceDevice::ChannelInfo::m_mutex

std::vector<BYTE> DahdiLineInterfaceDevice::ChannelInfo::m_readBuffer

int DahdiLineInterfaceDevice::ChannelInfo::m_readVol

int DahdiLineInterfaceDevice::ChannelInfo::m_samplesPerBlock

int DahdiLineInterfaceDevice::ChannelInfo::m_spanNumber

BYTE* DahdiLineInterfaceDevice::ChannelInfo::m_toneBuffer

int DahdiLineInterfaceDevice::ChannelInfo::m_toneBufferLen

int DahdiLineInterfaceDevice::ChannelInfo::m_toneBufferPos

std::vector<BYTE> DahdiLineInterfaceDevice::ChannelInfo::m_writeBuffer

int DahdiLineInterfaceDevice::ChannelInfo::m_writeVol

The documentation for this struct was generated from the following file:

- dahdi_ep.h