亚洲欧美第一页_禁久久精品乱码_粉嫩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成人天堂桃色av| 男女激情视频一区| 中文字幕中文字幕在线一区 | 毛片av中文字幕一区二区| 亚洲成人一区二区在线观看| 亚洲另类色综合网站| 一区二区三区中文字幕电影| 自拍偷拍亚洲欧美日韩| 国产精品国产三级国产有无不卡| 2021久久国产精品不只是精品| 精品国产污污免费网站入口 | 亚洲一区在线电影| 亚洲国产视频网站| 丝袜诱惑亚洲看片| 男女激情视频一区| 国产一区二区免费看| 国产精品乡下勾搭老头1| 风间由美一区二区三区在线观看 | 久久精品99国产精品日本| 久久激情综合网| 国产精品影视在线观看| 国产成人av自拍| 国产精品白丝在线| 国产精品天天看| 久久天堂av综合合色蜜桃网| 91精品婷婷国产综合久久竹菊| 色八戒一区二区三区| 成人午夜激情视频| 国产91丝袜在线播放九色| 极品少妇一区二区三区精品视频| 午夜国产精品一区| 亚洲三级在线播放| 一区二区三区四区不卡视频| 午夜精品福利一区二区三区av | 欧美日韩国产综合视频在线观看| 91麻豆精品国产91久久久使用方法 | 色8久久精品久久久久久蜜| 欧美性一级生活| 精品成人一区二区三区| 亚洲欧洲色图综合| 日韩高清电影一区| 国产大陆亚洲精品国产| 欧美在线视频你懂得| 精品日韩欧美一区二区| 国产精品美女久久久久久久| 亚洲一卡二卡三卡四卡五卡| 久久99深爱久久99精品| 色综合天天性综合| 日韩欧美的一区| 亚洲人快播电影网| 激情深爱一区二区| 色美美综合视频| 久久综合九色综合欧美就去吻| 综合分类小说区另类春色亚洲小说欧美 | 中文字幕一区二区三区在线观看| 亚洲高清免费在线| 亚洲精品水蜜桃| 亚洲欧美综合网| 一区二区三区日韩在线观看| 亚洲一区二区三区在线播放| 午夜久久久影院| 麻豆freexxxx性91精品| 国产成人综合网站| 91香蕉视频黄| 精品视频一区二区三区免费| 日韩一级完整毛片| 国产欧美久久久精品影院| 亚洲欧美另类图片小说| 亚洲第一福利一区| 国产一区二区三区在线观看免费 | 国产亚洲一区二区三区四区| 中文一区在线播放| 一区二区三区美女| 久久99久久99小草精品免视看| 国产大陆精品国产| 成人免费视频网站在线观看| 日韩一区二区电影网| 亚洲高清三级视频| 一本一道综合狠狠老| 国产午夜精品在线观看| 麻豆精品久久精品色综合| 欧美性xxxxxxxx| 亚洲乱码国产乱码精品精98午夜| 国产寡妇亲子伦一区二区| 日韩一区二区影院| 天天色天天爱天天射综合| 91高清在线观看| 国产一区二区精品在线观看| 日韩一级大片在线| 三级一区在线视频先锋 | 日本电影欧美片| 国产精品二三区| 国产福利视频一区二区三区| 欧美tickling挠脚心丨vk| 日韩国产成人精品| 欧美精品在线观看一区二区| 亚洲自拍都市欧美小说| 色94色欧美sute亚洲线路一久| 一区免费观看视频| 99久久精品情趣| 中文字幕一区二区三区乱码在线| 成人丝袜高跟foot| 国产精品美女一区二区三区| 菠萝蜜视频在线观看一区| 国产精品视频看| 亚洲人成在线观看一区二区| 日韩电影在线观看一区| 色婷婷av一区二区三区大白胸| 久久久久国产免费免费| 蜜臀av性久久久久蜜臀aⅴ四虎 | 美女视频黄久久| 欧美一a一片一级一片| 欧美国产日韩亚洲一区| 久久精品国产精品亚洲综合| 欧美性色欧美a在线播放| 国产精品免费久久| 国产精品资源网站| 日韩免费看网站| 午夜婷婷国产麻豆精品| 日本久久精品电影| 国产精品动漫网站| 国产·精品毛片| 久久嫩草精品久久久精品一| 久久不见久久见免费视频7| 欧美精品一二三| 亚洲va国产天堂va久久en| 色婷婷久久久久swag精品| 中文字幕视频一区| zzijzzij亚洲日本少妇熟睡| 久久久亚洲午夜电影| 国产一区二区三区日韩| 精品处破学生在线二十三| 老鸭窝一区二区久久精品| 日韩一区二区免费电影| 日本在线不卡视频| 在线一区二区视频| 国产精品久久久久久福利一牛影视| 色婷婷久久综合| 免费在线观看不卡| 中文字幕精品三区| 欧美怡红院视频| 久久精品国产色蜜蜜麻豆| 国产精品素人一区二区| 欧美三级在线播放| 国产毛片精品视频| 亚洲男同1069视频| 日韩美女视频在线| 99re在线视频这里只有精品| 性做久久久久久| 国产婷婷色一区二区三区| 日本韩国一区二区三区| 久久精品国产免费看久久精品| 国产精品国产三级国产aⅴ无密码| 欧美日韩国产综合视频在线观看 | 欧美一区二区三区人| 成人免费视频视频| 日韩电影在线观看一区| 国产精品女人毛片| 欧美一区二区三区在线看 | 久久久久久久久久久久电影| 色婷婷亚洲婷婷| 国产精品18久久久久久久网站| 亚洲蜜臀av乱码久久精品蜜桃| 日韩久久久久久| 欧美性色欧美a在线播放| 国产不卡视频一区二区三区| 日韩激情视频网站| 日韩一区日韩二区| 2欧美一区二区三区在线观看视频 337p粉嫩大胆噜噜噜噜噜91av | 激情另类小说区图片区视频区| 久久天天做天天爱综合色| 99久久精品国产毛片| 五月激情综合色| 精品日韩在线一区| 色婷婷亚洲综合| 美国一区二区三区在线播放| 国产日韩av一区| 欧美日韩不卡一区| 国产成人av一区二区三区在线| 亚洲综合区在线| 久久亚洲私人国产精品va媚药| 91在线视频官网| 久久精品国产成人一区二区三区| 中文字幕欧美三区| 91精品视频网| 99久久综合狠狠综合久久| 男女性色大片免费观看一区二区| 中文字幕免费一区| 91精品国产综合久久久久久久久久 | 亚洲视频在线观看三级| 91精品国产91热久久久做人人| 成人黄色免费短视频| 日韩在线a电影| 欧美国产精品中文字幕| 91精品国产综合久久福利| 本田岬高潮一区二区三区| 免费成人av在线| 亚洲一区二区美女|