亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频

? 歡迎來到蟲蟲下載站! | ?? 資源下載 ?? 資源專輯 ?? 關于我們
? 蟲蟲下載站

?? yatemodem.h

?? C++ modem驅動代碼
?? H
?? 第 1 頁 / 共 2 頁
字號:
/* * yatemodem.h * This file is part of the YATE Project http://YATE.null.ro * * Yet Another Modem * * Yet Another Telephony Engine - a fully featured software PBX and IVR * Copyright (C) 2004-2006 Null Team * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation; either version 2 of the License, or * (at your option) any later version. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * along with this program; if not, write to the Free Software * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA. */#ifndef __YATEMODEM_H#define __YATEMODEM_H#include <yateclass.h>#ifdef _WINDOWS#ifdef LIBYMODEM_EXPORTS#define YMODEM_API __declspec(dllexport)#else#ifndef LIBYMODEM_STATIC#define YMODEM_API __declspec(dllimport)#endif#endif#endif /* _WINDOWS */#ifndef YMODEM_API#define YMODEM_API#endif/**  * Holds all Telephony Engine related classes. */namespace TelEngine {class BitAccumulator;                    // 1-byte length bit accumulatorclass FSKModem;                          // Frequency Shift Keying modulator/demodulatorclass UART;                              // UART receiver/transmitterclass UARTBuffer;                        // A byte accumulator used by an UARTclass ETSIModem;                         // An analog signal processor as defined by ETSI// Internal forward declarationsclass BitBuffer;                         // Used to accumulate all bits to be printed to outputclass FSKFilter;                         // The internal signal filter/** * This class encapsulates an 8 bits length buffer used to accumulate bits * @short A 1-byte length bit accumulator */class YMODEM_API BitAccumulator{public:    /**     * Constructor     * @param dataBits The buffer size. Values interval 1..8     */    inline BitAccumulator(unsigned char dataBits)	: m_crtByte(0), m_crtPos(0), m_dataBits(dataBits), m_oddParity(false)	{}    /**     * Get the buffer size     * @return The buffer size     */    inline unsigned char dataBits() const	{ return m_dataBits; }    /**     * Set the buffer size. Reset the accumulator     * @param value The new buffer size. Values interval 1..8     */    inline void dataBits(unsigned char value) {	    m_dataBits = value;	    reset();	}    /**     * Reset the accumulator. Returns the old data     * @param oddParity Optional pointer to get the parity of old data     * @return The old data     */    inline unsigned char reset(bool* oddParity = 0) {	    unsigned char tmp = m_crtByte;	    m_crtByte = m_crtPos = 0;	    if (oddParity)		*oddParity = m_oddParity;	    m_oddParity = false;	    return tmp;	}    /**     * Accumulate a bit. Reset accumulator when full     * @param bit The bit value to accumulate     * @param oddParity Optional pointer to get the data parity when full     * @return The accumulated byte or a value greater then 255 if incomplete     */    inline unsigned int accumulate(bool bit, bool* oddParity = 0) {	    if (bit) {		m_crtByte |= (1 << m_crtPos);		m_oddParity = !m_oddParity;	    }	    m_crtPos++;	    if (m_crtPos != m_dataBits)		return 0xffff;	    return reset(oddParity);	}private:    unsigned char m_crtByte;             // Current partial byte    unsigned char m_crtPos;              // Current free bit position    unsigned char m_dataBits;            // The length of a data byte (interval: 1..8)    bool m_oddParity;                    // The parity of the current byte value (true: odd)};/** * This is a modulator/demodulator class attached to an UART. Used to demodulate bits *  from frequency modulated signal and send them to an UART * @short A Frequency Shift Keying modem */class YMODEM_API FSKModem{public:    /**     * Modem type enumeration     */    enum Type {	ETSI = 0,                        // ETSI caller id signal: MARK:1200 SPACE:2200 BAUDRATE:1200	                                 //  SAMPLERATE:8000 SAMPLES/BIT:7 STOPBITS:1 PARITY:NONE	TypeCount = 1	// NOTE: Don't change these values: they are used as array indexes    };    /**     * Constructor     * @param params Modem parameters (including modemtype)     * @param uart The UART attached to this modem     */    FSKModem(const NamedList& params, UART* uart);    /**     * Destructor     */    ~FSKModem();    /**     * Check if this modem is terminated. Need reset if so.     * The modem can terminate processing on UART's request     * @return True if this modem is terminated     */    inline bool terminated() const	{ return m_terminated; }    /**     * Get the type of this modem     * @return The modem type     */    inline int type() const	{ return m_type; }    /**     * Reset modem to its initial state     */    void reset();    /**     * Data processor. Demodulate received data. Feed the UART with received bits     * @param data The data to process     * @return False to stop feedding data (terminated)     */    bool demodulate(const DataBlock& data);    /**     * Create a buffer containing the modulated representation of a message.     * A data pattern (depending on modem's type) will be added before the message.     * A mark pattern (2ms long) will be added after the message.     * Reset the modem before each request to modulate     * @param dest Destination buffer     * @param data Message data (each byte will be enclosed in start/stop/parity bits)     */    void modulate(DataBlock& dest, const DataBlock& data);    /**     * Append a raw buffer to a data block     * @param dest Destination buffer     * @param buf Buffer to append to destination     * @param len the number of bytes to append starting with buf     */    static inline void addRaw(DataBlock& dest, void* buf, unsigned int len) {	    DataBlock tmp(buf,len,false);	    dest += tmp;	    tmp.clear(false);	}    /**     * Keep the modem type names. Useful to configure the modem     */    static TokenDict s_typeName[];private:    int m_type;                          // Modem type    bool m_terminated;                   // Terminated flag (need reset if true)    FSKFilter* m_filter;                 // Internal filter used to demodulate received data    UART* m_uart;                        // The UART using this modem's services    DataBlock m_buffer;                  // Partial input buffer when used to demodulate or modulate data    BitBuffer* m_bits;                   // Bit buffer used when debugging};/** * Accumulate data bits received from a modem * @short An UART receiver/transmitter */class YMODEM_API UART : public DebugEnabler{public:    /**     * UART state enumeration     */    enum State {	Idle,                            // Not started	BitStart,                        // Waiting for start bit (SPACE)	BitData,                         // Accumulate data bits	BitParity,                       // Waiting for parity bit(s)	BitStop,                         // Waiting for stop bit (MARK)	UARTError,                       // Error    };    /**     * UART error enumeration     */    enum Error {	EFraming,                        // Frame error: invalid stop bit(s)	EParity,                         // Parity error	EChksum,                         // Message checksum error	EInvalidData,                    // Invalid (inconsistent) data	EUnknown,                        // Unknown error	EStopped,                        // Aborted by descendants	ENone    };    /**     * Constructor     * @param state The initial state of this UART     * @param params The UART's parameters     * @param name The name of this debug enabler     */    UART(State state, const NamedList& params, const char* name = 0);    /**     * Destructor     */    virtual ~UART()	{}    /**     * Get the current state of this UART     * @return The current state of this UART as enumeration     */    inline State state() const	{ return m_state; }    /**     * Get the current error state of this UART, if any     * @return The current error state of this UART as enumeration     */    inline Error error() const	{ return m_error; }    /**     * Get the type of this UART's modem     * @return The type of this UART's modem     */    inline int modemType() const	{ return m_modem.type(); }    /**     * Get the data bit accumulator used by this UART     * @return The data bit accumulator used by this UART     */    inline const BitAccumulator& accumulator() const	{ return m_accumulator; }    /**     * Reset this UART     * @param newState The state to reset to     */    virtual void reset(State newState = Idle);    /**     * Send data to the enclosed modem to be demodulated     * @param data The data to process     * @return False to stop processing

?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
久久精品免费观看| 欧美一区日本一区韩国一区| 欧美吞精做爰啪啪高潮| 久久亚洲综合色一区二区三区| 亚洲欧美另类久久久精品| 国内不卡的二区三区中文字幕| 色婷婷狠狠综合| 欧美激情一区二区三区蜜桃视频 | 亚洲欧洲综合另类| 日本欧美一区二区三区乱码| 一本大道av一区二区在线播放| 久久久久久久久岛国免费| 肉丝袜脚交视频一区二区| 91网站黄www| 中文字幕成人网| 国产一二三精品| 日韩欧美国产综合在线一区二区三区| 亚洲女女做受ⅹxx高潮| av亚洲精华国产精华| 国产精品欧美久久久久无广告| 久久精品国产精品亚洲精品| 亚洲欧美偷拍另类a∨色屁股| 国产一区二区视频在线| 日韩精品中午字幕| 视频在线观看91| 欧美日韩国产一区| 亚洲成a人在线观看| 欧洲国产伦久久久久久久| 国产精品夫妻自拍| 99精品视频在线免费观看| 国产三级精品三级| 国产精品一区二区在线观看网站| 欧美日韩国产bt| 亚洲国产日韩在线一区模特| 欧美色窝79yyyycom| 国产成人亚洲综合色影视| 久久久电影一区二区三区| 国产精品一区二区在线观看不卡 | 美女视频免费一区| 日韩三级免费观看| 韩国午夜理伦三级不卡影院| 久久综合九色综合欧美98 | 成人av在线播放网址| 中文字幕精品一区二区精品绿巨人 | 欧美中文字幕不卡| 亚洲国产精品自拍| 欧美一区二区三区在线电影| 粉嫩绯色av一区二区在线观看| 日本一区二区高清| 色婷婷综合久久久中文一区二区 | 精品一区二区成人精品| 国产亚洲精品7777| 99re这里只有精品6| 亚洲一区二区高清| 日韩精品一区二区三区在线播放| 日韩一区二区三| 国产精品入口麻豆九色| 91福利精品第一导航| 五月婷婷综合网| 久久婷婷久久一区二区三区| 99精品一区二区| 青青草国产成人av片免费| 欧美精品一区二区在线观看| av不卡免费在线观看| 三级精品在线观看| 亚洲国产精品黑人久久久| 欧美日韩国产一区二区三区地区| 韩国一区二区三区| 一区二区三区在线视频免费观看| 亚洲综合久久av| 久久综合久久久久88| 欧美伊人久久久久久午夜久久久久| 看电视剧不卡顿的网站| 亚洲天堂福利av| 久久一日本道色综合| 欧美三级欧美一级| 懂色一区二区三区免费观看| 日韩黄色免费电影| 自拍视频在线观看一区二区| 91精品国产综合久久久久久漫画| 成人sese在线| 麻豆成人av在线| 亚洲国产视频直播| 日韩高清不卡一区二区| 亚洲色图都市小说| 国产亚洲一区二区三区| 3751色影院一区二区三区| 99久久伊人网影院| 国产一区二区久久| 日本在线观看不卡视频| 洋洋av久久久久久久一区| 国产欧美日本一区视频| 精品国产乱码久久久久久影片| 欧美午夜在线观看| 99精品国产一区二区三区不卡| 欧美影片第一页| 一本色道a无线码一区v| 成人性生交大合| 欧美一区二区人人喊爽| 精品婷婷伊人一区三区三| 91色porny| 99精品国产热久久91蜜凸| 大胆欧美人体老妇| 成人网页在线观看| 国产成人精品三级麻豆| 国产九色精品成人porny | 制服.丝袜.亚洲.中文.综合| 国产亚洲一区二区三区四区| 日韩精品一区二区三区四区视频| 这里只有精品视频在线观看| 欧美色倩网站大全免费| 欧美日韩性生活| 欧美性高清videossexo| 在线观看一区日韩| 在线看一区二区| 91福利视频久久久久| 欧美日韩中文字幕一区二区| 欧美色综合久久| 91精品婷婷国产综合久久竹菊| 欧美人体做爰大胆视频| 日韩一区中文字幕| 日韩理论在线观看| 亚洲男人都懂的| 亚洲成av人片一区二区三区| 亚洲高清免费观看| 人人精品人人爱| 国产一区高清在线| 成人精品高清在线| 欧美在线不卡一区| 欧美电影免费观看高清完整版在线 | **网站欧美大片在线观看| 日本一区二区动态图| 亚洲欧美日韩小说| 亚洲mv大片欧洲mv大片精品| 免费成人结看片| 风间由美中文字幕在线看视频国产欧美| 国产91精品在线观看| 一本大道av伊人久久综合| 亚洲欧洲www| 亚洲图片欧美色图| 麻豆91在线播放| 成人在线综合网站| 在线观看一区日韩| 日韩精品一区二| 亚洲日本在线观看| 日本欧美韩国一区三区| 国产黑丝在线一区二区三区| 91视频www| 欧美精品一区二区久久久| 亚洲视频一二区| 久久精品国产秦先生| 国产欧美1区2区3区| 一区二区视频在线| 极品少妇xxxx精品少妇偷拍| 99精品久久99久久久久| 欧美电视剧在线看免费| 亚洲日穴在线视频| 国产在线播放一区| 欧美性videosxxxxx| 国产三级欧美三级日产三级99| 一区二区三区国产精华| 国内精品伊人久久久久av一坑 | 日韩欧美亚洲一区二区| 中文字幕中文乱码欧美一区二区 | 91香蕉视频mp4| 欧美xxxxx牲另类人与| 一区二区三区不卡在线观看 | 国产一区二区三区香蕉| 欧美视频一区二区三区| 国产精品美女视频| 久久电影网站中文字幕| 久久奇米777| 亚洲国产中文字幕在线视频综合| 国产成人午夜精品5599| 日韩精品专区在线| 日韩精品成人一区二区在线| 97久久精品人人做人人爽| 久久久午夜精品| 视频在线观看91| 欧美日韩精品久久久| 亚洲免费电影在线| 成人av在线看| 中文字幕av一区 二区| 国产一区二区三区四区五区美女| 91精品国产一区二区人妖| 一级中文字幕一区二区| 色综合天天视频在线观看 | www.视频一区| 久久久www成人免费无遮挡大片| 日本午夜一区二区| 欧美美女bb生活片| 亚洲资源中文字幕| 在线一区二区三区| 亚洲黄色免费网站| 91搞黄在线观看| 亚洲女人的天堂| 欧美在线观看视频一区二区三区| 亚洲精品国产a久久久久久| 色播五月激情综合网| 亚洲综合男人的天堂|