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

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

?? hal_w2.h

?? 非常全的nrf2401設計資料
?? H
字號:
/* Copyright (c) 2008 Nordic Semiconductor. All Rights Reserved.
 *
 * The information contained herein is property of Nordic Semiconductor ASA.
 * Terms and conditions of usage are described in detail in NORDIC
 * SEMICONDUCTOR STANDARD SOFTWARE LICENSE AGREEMENT. 
 *
 * Licensees are granted free, non-transferable use of the information. NO
 * WARRENTY of ANY KIND is provided. This heading must NOT be removed from
 * the file.
 *
 * $LastChangedRevision$
 */ 

/** @file
 * @defgroup nordic_hal_w2 2-Wire
 * @{
 * @ingroup nordic_hal
 *
 * @brief  Interface for the 2-Wire module.
 *
 * @author Rune Brandsegg
 */


#ifndef HAL_W2_H__
#define HAL_W2_H__

#include <stdint.h>
#include <stdbool.h>


/** An enum describing the clock frequency.
 *
 */
typedef enum {
  HAL_W2_IDLE   = 0x00,       /**< Idle */
  HAL_W2_100KHZ = 0x01,       /**< 100 KHz (Standard mode) */
  HAL_W2_400KHZ = 0x02        /**< 400 KHz (Fast mode) */
} hal_w2_clk_freq_t;                

/** An enum describing master or slave mode.
 *
 */
typedef enum {
  HAL_W2_MASTER,              /**< Master mode */
  HAL_W2_SLAVE                /**< Slave mode */
} hal_w2_op_mode_t;                 

/** An enum describing the 2-wire's irq sources.
 *
 */ 
typedef enum {
  HAL_W2_STOP_COND = 0x08,    /**< Interrupt caused by stop condition */
  HAL_W2_ADRESS_MATCH = 0x04, /**< Interrupt caused by address match */
  HAL_W2_DATA_READY = 0x01    /**< Interrupt caused by byte transmitted/received */
} hal_w2_irq_source_t;

/** @name   SLAVE SPECIFIC FUNCTIONS  */
//@{
/* Slave specific function prototypes */

/** Function to set the slave to respond to a general call address.
 * Use this function set the slave to respond to a general call address (0x00) 
 * as well as the defined address
 * -- Slave only --
 *
 * @param resp_gen True if the slave shall respond to general call adress
 */
void hal_w2_respond_to_gen_adr(bool resp_gen);

/** Function to control clockStop mode.
 * Use this function to control clockStop mode
 * -- Slave only --
 */
void hal_w2_alter_clock(bool alt_clk);

/** Function to enable irq when stop condition is detected.
 * Use this function enable irq when stop condition is detected
 * -- Slave only --
 *
 * @param stop_cond True to enable, false to disable irq when stop condition is detected
 */
void hal_w2_irq_stop_cond_enable(bool stop_cond);

/** Function to enable the irq on address match.
 * Use this function enable the irq on address match
 * -- Slave only --
 *
 * @param addr_match True to enable, false to disable the irq on address match
 */
void hal_w2_irq_adr_match_enable(bool addr_match);

/** Function to set the slave address.
 * Use this function to set the 7-bit address for slave mode.
 *
 * @param address 7-bit slave address 
 */
void hal_w2_set_slave_address(uint8_t address);
//@}


/** @name   MASTER SPECIFIC FUNCTIONS  */
//@{
/* Master specific function prototypes */

/** Function to start transmitting.
 * Use this function start transmitting
 * -- Master only --
 */
void hal_w2_transmit_start_cond(void);

/** Function to stop transmitting.
 * Use this function stop transmitting
 * -- Master only -- 
 */
void hal_w2_transmit_stop_cond(void);
//@}


/** Function to set the clock frequency.
 * Use this function select clock frequency of the 2-wire.
 *
 * @param freq The clock frequency of the 2-wire
 */
void hal_w2_set_clk_freq(hal_w2_clk_freq_t freq);

/** Function to set the operation mode of the 2-wire.
 * Use this function select master or slave mode.
 *
 * @param mode The operation mode of the 2-wire
 */
void hal_w2_set_op_mode(hal_w2_op_mode_t mode);

/** Function to enable the 2-wire.
 * Use this function enable the 2-wire, must be done before any other
 * programming of the 2-wire.
 *
 * @param en True to enable, false to disable
 */
void hal_w2_enable(bool en);

/** Function to enable all interrupts.
 * Use this function enable all interrupts.
 *
 * @param irq True to enable, false to disable all interrupts in the 2-wire
 */
void hal_w2_all_irq_enable(bool irq);

/** Function that returns the status of the 2-wire.
 * Use this function to get the status of the 2-wire
 * 
 * @remark Bit 4:0 are cleared when read.
 * @return Status register
 */
uint8_t hal_w2_get_status(void);

/** Function to write to the 2-wire data register.
 * Use this function to write to the 2-wire data register.
 *
 * @param tx_data Data to transmit
 */
void hal_w2_write_data(uint8_t tx_data);

/** Function to read from the 2-wire data register.
 * Use this function to read from the 2-wire data register.
 *
 * @return Data in 2-wire data register
 */
uint8_t hal_w2_read_data(void);


#endif // HAL_W2_H__
/** 
@} 
@} */

?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
日本一区二区久久| 国产日韩亚洲欧美综合| 97精品国产露脸对白| 国产精品18久久久久| 国产高清在线观看免费不卡| 国产麻豆精品在线观看| 国产一区二区影院| 国产成人av福利| 国产凹凸在线观看一区二区| 国产91丝袜在线播放| 波多野结衣一区二区三区| 国产成人av电影在线| 色伊人久久综合中文字幕| 欧美色倩网站大全免费| 欧美久久久久久蜜桃| 精品国产凹凸成av人导航| 国产欧美一区二区精品性色超碰| 中文欧美字幕免费| 亚洲精品五月天| 日韩精品欧美成人高清一区二区| 蜜桃视频在线一区| 国产大陆亚洲精品国产| 一本色道久久综合精品竹菊| 欧美日韩免费一区二区三区视频| 在线综合视频播放| 欧美国产激情一区二区三区蜜月| 国产精品成人免费| 天天综合天天做天天综合| 麻豆91小视频| av男人天堂一区| 欧美精品精品一区| 国产欧美一区二区在线| 亚洲香蕉伊在人在线观| 精品一区二区国语对白| 色综合天天做天天爱| 欧美一级二级三级蜜桃| 国产精品乱人伦| 日韩成人午夜电影| av一区二区不卡| 日韩免费观看2025年上映的电影| 国产精品国产精品国产专区不蜜| 日韩精品成人一区二区三区 | 欧美日韩视频第一区| 精品少妇一区二区三区视频免付费| 中文在线免费一区三区高中清不卡| 艳妇臀荡乳欲伦亚洲一区| 国内成人精品2018免费看| 一本色道a无线码一区v| 精品久久国产97色综合| 亚洲一区二区三区四区在线观看| 国产另类ts人妖一区二区| 欧美日韩日日骚| 亚洲欧美日韩中文字幕一区二区三区| 日韩av网站在线观看| 91女人视频在线观看| 国产欧美日韩卡一| 精品在线播放免费| 在线不卡免费av| 亚洲色图欧洲色图| 国产一区不卡精品| 欧美一区二区三区啪啪| 亚洲最大成人综合| 色香蕉久久蜜桃| 国产精品三级av| 国产麻豆精品在线观看| 精品久久人人做人人爰| 免费日本视频一区| 91麻豆精品国产自产在线观看一区| 夜夜夜精品看看| 色94色欧美sute亚洲线路二| 亚洲人快播电影网| 97久久精品人人做人人爽50路| 久久欧美中文字幕| 国产精品一区二区无线| 欧美精品一区二区三区一线天视频| 美女任你摸久久| 日韩精品资源二区在线| 看电影不卡的网站| 久久综合丝袜日本网| 国产一区二区三区视频在线播放| 精品国产一区二区三区四区四 | 久久综合综合久久综合| 3d动漫精品啪啪一区二区竹菊| 日韩av中文字幕一区二区三区| 在线播放亚洲一区| 美日韩一区二区三区| 精品va天堂亚洲国产| 国产一区二区0| 中文字幕av资源一区| av电影在线不卡| 亚洲综合网站在线观看| 制服丝袜一区二区三区| 精品一区二区三区影院在线午夜| 久久免费看少妇高潮| 成人午夜私人影院| 亚洲综合丝袜美腿| 欧美三级视频在线观看| 久久97超碰国产精品超碰| 久久精品一区二区三区不卡牛牛 | 99精品欧美一区二区三区小说| 国产精品成人免费精品自在线观看| 色噜噜偷拍精品综合在线| 丝袜亚洲另类欧美综合| 久久精品综合网| 91久久线看在观草草青青| 麻豆精品在线观看| 国产午夜精品美女毛片视频| 色狠狠av一区二区三区| 麻豆成人免费电影| 国产精品丝袜一区| 欧美情侣在线播放| 成人免费看视频| 午夜精品久久久久久久久久久| 久久婷婷色综合| 日本精品裸体写真集在线观看| 麻豆91在线看| 亚洲黄色尤物视频| 久久综合九色综合97婷婷女人 | 精品国产伦一区二区三区观看体验| 国产成人综合网站| 日韩精品免费专区| 亚洲丝袜美腿综合| 久久精品一区二区| 欧美高清你懂得| 99re热这里只有精品免费视频| 激情五月婷婷综合网| 亚洲女与黑人做爰| 久久精品亚洲精品国产欧美| 欧美网站一区二区| 成人性生交大片免费看在线播放 | 国产精品激情偷乱一区二区∴| 91.com在线观看| 色哟哟欧美精品| 不卡视频在线看| 国产91在线观看丝袜| 国模娜娜一区二区三区| 日韩中文字幕av电影| 亚洲精品乱码久久久久久黑人 | 欧美一区二区三区免费大片| 不卡视频在线看| 国产成人av电影在线| 国产盗摄女厕一区二区三区| 极品尤物av久久免费看| 蜜臀久久99精品久久久画质超高清| 亚洲一区二区成人在线观看| 成人免费在线播放视频| 国产精品乱人伦| 亚洲国产高清不卡| 亚洲国产精品精华液2区45| 26uuu精品一区二区三区四区在线 26uuu精品一区二区在线观看 | 另类小说色综合网站| 肉丝袜脚交视频一区二区| 婷婷中文字幕综合| 五月天国产精品| 视频一区二区三区在线| 蜜臀国产一区二区三区在线播放| 日韩成人伦理电影在线观看| 久久福利资源站| 国产麻豆一精品一av一免费 | 亚洲一区二区三区视频在线播放 | 日韩av电影免费观看高清完整版| 天天色综合天天| 日韩成人免费电影| 韩国av一区二区三区在线观看| 精品在线视频一区| 国产麻豆一精品一av一免费 | 亚洲在线一区二区三区| 亚洲一区二区影院| 首页欧美精品中文字幕| 美女在线视频一区| 国产一区二区福利视频| 91在线一区二区| 欧美日韩一区三区四区| 91精品国产综合久久久久久久久久| 91精品午夜视频| 国产偷v国产偷v亚洲高清| 亚洲四区在线观看| 日本中文字幕一区二区有限公司| 狠狠网亚洲精品| 91在线视频网址| 91精品国产91热久久久做人人 | 亚洲综合成人在线| 蜜桃视频免费观看一区| 成人18视频在线播放| 久久超碰97中文字幕| 欧美喷水一区二区| 亚洲444eee在线观看| 日日夜夜一区二区| 91在线观看下载| 欧美电影免费提供在线观看| 夜夜夜精品看看| 粉嫩av一区二区三区| 亚洲欧美偷拍卡通变态| 亚洲国产美女搞黄色| 成人一区二区三区| 国产日韩欧美精品综合| 成人国产精品视频| 中文字幕日韩精品一区| 国产精品69毛片高清亚洲| 国产午夜一区二区三区|