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

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

?? usart.h

?? FreeRTOS V4.2.1,增加了AVR32 UC3 和 LPC2368 的支持
?? H
?? 第 1 頁 / 共 2 頁
字號:
 *
 * \param usart       Base address of the USART instance.
 * \param opt         Options needed to set up RS232 communication (see \ref usart_options_t).
 * \param pba_hz      USART module input clock frequency (PBA clock, Hz).
 * \param irda_filter Counter used to distinguish received ones from zeros.
 *
 * \retval USART_SUCCESS        Mode successfully initialized.
 * \retval USART_INVALID_INPUT  One or more of the arguments is out of valid range.
 */
extern int usart_init_IrDA(volatile avr32_usart_t *usart, const usart_options_t *opt,
                           long pba_hz, unsigned char irda_filter);

/*! \brief Sets up the USART to use the modem protocol, activating dedicated inputs/outputs.
 *
 * \param usart   Base address of the USART instance.
 * \param opt     Options needed to set up RS232 communication (see \ref usart_options_t).
 * \param pba_hz  USART module input clock frequency (PBA clock, Hz).
 *
 * \retval USART_SUCCESS        Mode successfully initialized.
 * \retval USART_INVALID_INPUT  One or more of the arguments is out of valid range.
 */
extern int usart_init_modem(volatile avr32_usart_t *usart, const usart_options_t *opt, long pba_hz);

/*! \brief Sets up the USART to use the RS485 protocol.
 *
 * \param usart       Base address of the USART instance.
 * \param opt         Options needed to set up RS232 communication (see \ref usart_options_t).
 * \param pba_hz      USART module input clock frequency (PBA clock, Hz).
 *
 * \retval USART_SUCCESS        Mode successfully initialized.
 * \retval USART_INVALID_INPUT  One or more of the arguments is out of valid range.
 */
extern int usart_init_rs485(volatile avr32_usart_t *usart, const usart_options_t *opt, long pba_hz);

/*! \brief Sets up the USART to use the ISO7816 T=0 or T=1 smartcard protocols.
 *
 * \param usart   Base address of the USART instance.
 * \param opt     Options needed to set up ISO7816 communication (see \ref iso7816_options_t).
 * \param t       ISO7816 mode to use (T=0 or T=1).
 * \param pba_hz  USART module input clock frequency (PBA clock, Hz).
 *
 * \retval USART_SUCCESS        Mode successfully initialized.
 * \retval USART_INVALID_INPUT  One or more of the arguments is out of valid range.
 */
extern int usart_init_iso7816(volatile avr32_usart_t *usart, const iso7816_options_t *opt, int t, long pba_hz);

//! @}


//------------------------------------------------------------------------------
/*! \name Read and Reset Error Status Bits
 */
//! @{

/*! \brief Resets the error status.
 *
 * This function resets the status bits indicating that a parity error,
 * framing error or overrun has occurred. The RXBRK bit, indicating
 * a start/end of break condition on the RX line, is also reset.
 *
 * \param usart Base address of the USART instance.
 */
#if __GNUC__
__attribute__((__always_inline__))
#endif
extern __inline__ void usart_reset_status(volatile avr32_usart_t *usart)
{
  usart->cr |= AVR32_USART_CR_RSTSTA_MASK;
}

/*! \brief Checks if a parity error has occurred since last status reset.
 *
 * \param usart Base address of the USART instance.
 *
 * \return \c 1 if a parity error has been detected, otherwise \c 0.
 */
#if __GNUC__
__attribute__((__always_inline__))
#endif
extern __inline__ int usart_parity_error(volatile avr32_usart_t *usart)
{
  return (usart->csr & AVR32_USART_CSR_PARE_MASK) != 0;
}

/*! \brief Checks if a framing error has occurred since last status reset.
 *
 * \param usart Base address of the USART instance.
 *
 * \return \c 1 if a framing error has been detected, otherwise \c 0.
 */
#if __GNUC__
__attribute__((__always_inline__))
#endif
extern __inline__ int usart_framing_error(volatile avr32_usart_t *usart)
{
  return (usart->csr & AVR32_USART_CSR_FRAME_MASK) != 0;
}

/*! \brief Checks if an overrun error has occurred since last status reset.
 *
 * \param usart Base address of the USART instance.
 *
 * \return \c 1 if a overrun error has been detected, otherwise \c 0.
 */
#if __GNUC__
__attribute__((__always_inline__))
#endif
extern __inline__ int usart_overrun_error(volatile avr32_usart_t *usart)
{
  return (usart->csr & AVR32_USART_CSR_OVRE_MASK) != 0;
}

//! @}


//------------------------------------------------------------------------------
/*! \name Transmit/Receive Functions
 */
//! @{

/*! \brief Addresses a receiver.
 *
 * While in RS485 mode, receivers only accept data addressed to them.
 * A packet/char with the address tag set has to precede any data.
 * This function is used to address a receiver. This receiver should read
 * all the following data, until an address packet addresses another receiver.
 *
 * \param usart   Base address of the USART instance.
 * \param address Address of the target device.
 *
 * \retval USART_SUCCESS    Address successfully sent (if current mode is RS485).
 * \retval USART_MODE_FAULT Wrong operating mode.
 */
extern int usart_send_address(volatile avr32_usart_t *usart, int address);

/*! \brief Writes the given character to the TX buffer if the transmitter is ready.
 *
 * \param usart Base address of the USART instance.
 * \param c     The character (up to 9 bits) to transmit.
 *
 * \retval USART_SUCCESS  The transmitter was ready.
 * \retval USART_TX_BUSY  The transmitter was busy.
 */
extern int usart_write_char(volatile avr32_usart_t *usart, int c);

/*! \brief An active wait writing a character to the USART.
 *
 * \param usart Base address of the USART instance.
 * \param c     The character (up to 9 bits) to transmit.
 */
#if __GNUC__
__attribute__((__always_inline__))
#endif
extern __inline__ void usart_bw_write_char(volatile avr32_usart_t *usart, int c)
{
  while (usart_write_char(usart, c) != USART_SUCCESS);
}

/*! \brief Sends a character with the USART.
 *
 * \param usart Base address of the USART instance.
 * \param c     Character to write.
 *
 * \retval USART_SUCCESS  The character was written.
 * \retval USART_FAILURE  The function timed out before the USART transmitter became ready to send.
 */
extern int usart_putchar(volatile avr32_usart_t *usart, int c);

/*! \brief Checks the RX buffer for a received character, and stores it at the
 *         given memory location.
 *
 * \param usart Base address of the USART instance.
 * \param c     Pointer to the where the read character should be stored
 *              (must be at least short in order to accept 9-bit characters).
 *
 * \retval USART_SUCCESS  The character was read successfully.
 * \retval USART_RX_EMPTY The RX buffer was empty.
 * \retval USART_RX_ERROR An error was deteceted.
 */
extern int usart_read_char(volatile avr32_usart_t *usart, int *c);

/*! \brief Waits until a character is received, and returns it.
 *
 * \param usart Base address of the USART instance.
 *
 * \return The received character, or \ref USART_FAILURE upon error.
 */
extern int usart_getchar(volatile avr32_usart_t *usart);

/*! \brief Writes one character string to the USART.
 *
 * \param usart   Base address of the USART instance.
 * \param string  String to be written.
 */
extern void usart_write_line(volatile avr32_usart_t *usart, const char *string);

/*! \brief Gets and echoes characters until end of line.
 *
 * \param usart Base address of the USART instance.
 *
 * \retval USART_SUCCESS  Success.
 * \retval USART_FAILURE  ETX character received.
 */
extern int usart_get_echo_line(volatile avr32_usart_t *usart);

//! @}


#endif  // _USART_H_

?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
日韩一二三四区| 美女精品自拍一二三四| 一区二区三区在线免费观看| 亚洲成a人v欧美综合天堂下载 | 国产成人午夜电影网| 不卡的av网站| 6080yy午夜一二三区久久| 久久婷婷成人综合色| 亚洲精品视频在线观看免费| 日韩成人免费电影| 国产成人综合在线| 在线一区二区视频| 精品三级在线观看| 亚洲免费电影在线| 老司机午夜精品| 99久久久精品| 日韩一区二区电影在线| 国产精品理伦片| 日韩精品91亚洲二区在线观看| 国产91清纯白嫩初高中在线观看| 欧美视频一区二区三区| 久久天天做天天爱综合色| 一区二区三区免费在线观看| 久久99热这里只有精品| 色婷婷av一区二区三区gif | 国产麻豆一精品一av一免费| 91福利在线观看| 2023国产精品| 亚洲成人免费在线| 丁香婷婷深情五月亚洲| 7777精品伊人久久久大香线蕉| 国产精品对白交换视频| 九九久久精品视频 | 一级精品视频在线观看宜春院 | 欧美日韩日日骚| 国产欧美日本一区二区三区| 日韩精品乱码免费| 91蜜桃视频在线| 精品日韩99亚洲| 亚洲成人激情社区| 蜜臀av一区二区在线免费观看| 久久国产尿小便嘘嘘| 91国模大尺度私拍在线视频| 久久久国产精品麻豆| 午夜精品免费在线| 91在线小视频| 久久久久久久综合| 青青草97国产精品免费观看 | 亚洲综合自拍偷拍| 成人黄色免费短视频| 日韩一级片在线播放| 亚洲一区二区三区四区不卡| 成人网在线免费视频| 精品卡一卡二卡三卡四在线| 日本亚洲天堂网| 欧美三级在线看| 亚洲欧美二区三区| 99久久伊人久久99| 亚洲国产成人在线| 国产一区不卡在线| 久久综合中文字幕| 麻豆国产欧美日韩综合精品二区| 欧美日韩三级视频| 亚洲3atv精品一区二区三区| 欧美在线观看一二区| 一区二区三区四区亚洲| 91污片在线观看| 亚洲欧美自拍偷拍色图| www.亚洲精品| 一区二区成人在线| 中文字幕日韩av资源站| 国产精品一二三四五| www一区二区| 国模大尺度一区二区三区| 欧美mv日韩mv国产网站app| 日韩极品在线观看| 91麻豆精品国产自产在线观看一区 | 午夜视频在线观看一区| 欧美性生交片4| 亚洲无线码一区二区三区| 欧美图片一区二区三区| 亚洲福利国产精品| 8v天堂国产在线一区二区| 日韩福利视频网| 日韩欧美一级片| 国产一区二区视频在线| 国产女人18水真多18精品一级做| 成人深夜福利app| 亚洲视频网在线直播| 在线区一区二视频| 日韩精品色哟哟| 久久亚洲精品国产精品紫薇| 国产麻豆精品视频| 国产精品美女久久久久久久久 | 日韩理论片在线| 国产精品一区在线| 日韩欧美黄色影院| 久久国产剧场电影| 欧美激情一区二区在线| 91在线精品一区二区| 亚洲一卡二卡三卡四卡无卡久久 | 精品国产91九色蝌蚪| 一区二区在线看| 欧美体内she精视频| 亚洲国产精品尤物yw在线观看| 日本久久电影网| 精品国产一区二区三区忘忧草 | 亚洲精品国产一区二区精华液| 激情综合色丁香一区二区| 日韩欧美国产综合一区 | 国产精品综合一区二区三区| 国产精品乱人伦| 91麻豆福利精品推荐| 一区二区三区蜜桃网| 欧美日韩国产高清一区二区 | 国产精品99久久久| 国产婷婷色一区二区三区在线| 国产传媒日韩欧美成人| 最新日韩在线视频| 3d动漫精品啪啪1区2区免费| 激情五月婷婷综合| 中文字幕免费观看一区| 91亚洲精华国产精华精华液| 亚洲自拍偷拍网站| 91精品国产aⅴ一区二区| 国模少妇一区二区三区| 国产精品久久毛片a| 欧美午夜不卡视频| 精一区二区三区| 国产无遮挡一区二区三区毛片日本| 色哟哟一区二区在线观看 | 欧美日韩一区二区在线观看| 美国十次综合导航| 国产精品美女久久久久久2018 | 亚洲成人一区在线| 日韩欧美国产系列| 国产成人av电影在线| 国产一区二区三区综合| 福利视频网站一区二区三区| 亚洲欧美另类久久久精品| 在线播放日韩导航| 懂色中文一区二区在线播放| 亚洲观看高清完整版在线观看| 日韩一区二区三区在线| 日本二三区不卡| 久久精品国产**网站演员| 成人欧美一区二区三区1314| 91精品国产综合久久精品app| 懂色av一区二区夜夜嗨| 亚洲日本成人在线观看| 日韩精品中文字幕在线不卡尤物| 成人丝袜高跟foot| 日韩**一区毛片| 综合久久久久久久| 欧美电视剧免费观看| 99re视频精品| 久久99精品久久久久久国产越南 | 五月激情六月综合| 久久精品男人的天堂| 欧美日韩视频在线观看一区二区三区 | 狠狠色丁香婷婷综合| 亚洲一区在线观看免费观看电影高清| 精品国产一区二区三区四区四| 欧美日韩一区二区三区四区| 成人精品国产免费网站| 奇米色777欧美一区二区| 亚洲麻豆国产自偷在线| 久久亚洲捆绑美女| 欧美日韩激情在线| 欧美午夜精品一区二区蜜桃| 成人永久免费视频| 极品美女销魂一区二区三区| 亚洲国产sm捆绑调教视频 | 美女免费视频一区二区| 亚洲欧美国产三级| 亚洲国产精品国自产拍av| 91精品国产色综合久久不卡电影 | 成人福利视频在线看| 热久久国产精品| 肉肉av福利一精品导航| 一区二区在线观看免费| 国产精品三级在线观看| 精品乱码亚洲一区二区不卡| 91 com成人网| 日韩午夜激情av| 欧美精品日韩综合在线| 欧美手机在线视频| 一本色道a无线码一区v| 波多野结衣中文字幕一区二区三区| 久久99国产精品麻豆| 日韩码欧中文字| 日韩一级高清毛片| 8v天堂国产在线一区二区| 欧美日韩欧美一区二区| 欧美做爰猛烈大尺度电影无法无天| www.亚洲精品| 91在线国内视频| 色拍拍在线精品视频8848| 99精品热视频| 99re视频精品|