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

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

?? can.h

?? STR710控制CC1100模塊程序說明
?? H
?? 第 1 頁 / 共 2 頁
字號:

/*******************************************************************************
* Function Name  : CAN_SetUnusedMsgObj
* Description    : Configure the message object as unused
* Input 1        : message object number, from 0 to 31
* Output         : None
* Return         : None
*******************************************************************************/
void CAN_SetUnusedMsgObj(u32 msgobj);

/*******************************************************************************
* Function Name  : CAN_SetTxMsgObj
* Description    : Configure the message object as TX
* Input 1        : message object number, from 0 to 31
* Input 2        : CAN_STD_ID or CAN_EXT_ID
* Output         : None
* Return         : None
*******************************************************************************/
void CAN_SetTxMsgObj(u32 msgobj, u32 idType);

/*******************************************************************************
* Function Name  : CAN_SetRxMsgObj
* Description    : Configure the message object as RX
* Input 1        : message object number, from 0 to 31
* Input 2        : CAN_STD_ID or CAN_EXT_ID
* Input 3        : low part of the identifier range used for acceptance filtering
* Input 4        : high part of the identifier range used for acceptance filtering
* Input 5        : TRUE for a single receive object or a FIFO receive object that
*                  is the last one of the FIFO
*                  FALSE for a FIFO receive object that is not the last one
* Output         : None
* Return         : None
*******************************************************************************/
void CAN_SetRxMsgObj(u32 msgobj, u32 idType, u32 idLow, u32 idHigh, bool singleOrFifoLast);

/*******************************************************************************
* Function Name  : CAN_InvalidateAllMsgObj
* Description    : Configure all the message objects as unused
* Input          : None
* Output         : None
* Return         : None
*******************************************************************************/
void CAN_InvalidateAllMsgObj(void);

/*******************************************************************************
* Function Name  : CAN_Init
* Description    : Initialize the CAN cell and set the bitrate
* Input 1        : any binary value formed from the CAN_CTL_xxx defines
* Input 2        : one of the CAN_BITRATE_xxx defines
* Output         : None
* Return         : None
*******************************************************************************/
void CAN_Init(u8 mask, u32 bitrate);

/*******************************************************************************
* Function Name  : CAN_ReleaseMessage
* Description    : Release the message object
* Input 1        : message object number, from 0 to 31
* Output         : None
* Return         : None
*******************************************************************************/
void CAN_ReleaseMessage(u32 msgobj);

/*******************************************************************************
* Function Name  : CAN_ReleaseTxMessage
* Description    : Release the transmit message object
* Input 1        : message object number, from 0 to 31
* Output         : None
* Return         : None
* Note           : assume that message interface 0 is free
*******************************************************************************/
inline void CAN_ReleaseTxMessage(u32 msgobj)
{
	CAN->sMsgObj[0].CMR = CAN_CMR_CLRINTPND | CAN_CMR_TXRQST;
	CAN->sMsgObj[0].CRR = 1 + msgobj;
}

/*******************************************************************************
* Function Name  : CAN_ReleaseRxMessage
* Description    : Release the receive message object
* Input 1        : message object number, from 0 to 31
* Output         : None
* Return         : None
* Note           : assume that message interface 1 is free
*******************************************************************************/
inline void CAN_ReleaseRxMessage(u32 msgobj)
{
	CAN->sMsgObj[1].CMR = CAN_CMR_CLRINTPND | CAN_CMR_TXRQST;
	CAN->sMsgObj[1].CRR = 1 + msgobj;
}

/*******************************************************************************
* Function Name  : CAN_SendMessage
* Description    : Start transmission of a message
* Input 1        : message object number, from 0 to 31
* Input 2        : pointer to the message structure containing data to transmit
* Output         : None
* Return         : 1 if transmission was OK, else 0
*******************************************************************************/
u32  CAN_SendMessage(u32 msgobj, canmsg* pCanMsg);

/*******************************************************************************
* Function Name  : CAN_ReceiveMessage
* Description    : Get the message, if received
* Input 1        : message object number, from 0 to 31
* Input 2        : if TRUE, the message object is released when getting the data
*                  if FALSE, the message object is not released
* Input 3        : pointer to the message structure where received data is stored
* Output         : None
* Return         : 1 if reception was OK, else 0 (no message pending)
*******************************************************************************/
u32  CAN_ReceiveMessage(u32 msgobj, bool release, canmsg* pCanMsg);

/*******************************************************************************
* Function Name  : CAN_WaitEndOfTx
* Description    : Wait until current transmission is finished
* Input          : None
* Output         : None
* Return         : None
*******************************************************************************/
void CAN_WaitEndOfTx(void);

/*******************************************************************************
* Function Name  : CAN_BasicSendMessage
* Description    : Start transmission of a message in BASIC mode
* Input 1        : pointer to the message structure containing data to transmit
* Output         : None
* Return         : 1 if transmission was OK, else 0
* Note           : CAN must be in BASIC mode
*******************************************************************************/
u32 CAN_BasicSendMessage(canmsg* pCanMsg);

/*******************************************************************************
* Function Name  : CAN_BasicReceiveMessage
* Description    : Get the message in BASIC mode, if received
* Input 1        : pointer to the message structure where received data is stored
* Output         : None
* Return         : 1 if reception was OK, else 0 (no message pending)
* Note           : CAN must be in BASIC mode
*******************************************************************************/
u32 CAN_BasicReceiveMessage(canmsg* pCanMsg);

/*******************************************************************************
* Function Name  : CAN_IsMessageWaiting
* Description    : Test the waiting status of a received message
* Input 1        : message object number, from 0 to 31
* Output         : None
* Return         : A non-zero value if the corresponding message object has
*                  received a message waiting to be copied, else 0
*******************************************************************************/
inline u32 CAN_IsMessageWaiting(u32 msgobj)
{
  return (msgobj < 16 ? CAN->ND1R & (1 << msgobj) : CAN->ND2R & (1 << (msgobj-16)));
}

/*******************************************************************************
* Function Name  : CAN_IsTransmitRequested
* Description    : Test the request status of a transmitted message
* Input 1        : message object number, from 0 to 31
* Output         : None
* Return         : A non-zero value if the corresponding message is requested
*                  to transmit, else 0
*******************************************************************************/
inline u32 CAN_IsTransmitRequested(u32 msgobj)
{
  return (msgobj < 16 ? CAN->TR1R & (1 << msgobj) : CAN->TR2R & (1 << (msgobj-16)));
}

/*******************************************************************************
* Function Name  : CAN_IsInterruptPending
* Description    : Test the interrupt status of a message object
* Input 1        : message object number, from 0 to 31
* Output         : None
* Return         : A non-zero value if the corresponding message has an interrupt
*                  pending, else 0
*******************************************************************************/
inline u32 CAN_IsInterruptPending(u32 msgobj)
{
  return (msgobj < 16 ? CAN->IP1R & (1 << msgobj) : CAN->IP2R & (1 << (msgobj-16)));
}

/*******************************************************************************
* Function Name  : CAN_IsObjectValid
* Description    : Test the validity of a message object (ready to use)
* Input 1        : message object number, from 0 to 31
* Output         : None
* Return         : A non-zero value if the corresponding message object is valid,
*                  else 0
*******************************************************************************/
inline u32 CAN_IsObjectValid(u32 msgobj)
{
  return (msgobj < 16 ? CAN->MV1R & (1 << msgobj) : CAN->MV2R & (1 << (msgobj-16)));
}

#endif /* __can_H */

/******************* (C) COPYRIGHT 2003 STMicroelectronics *****END OF FILE****/

?? 快捷鍵說明

搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
91精品欧美久久久久久动漫| 麻豆精品国产91久久久久久| 91亚洲国产成人精品一区二三| 亚洲国产精品激情在线观看| av激情成人网| 亚洲精品视频一区二区| 欧美日韩免费高清一区色橹橹 | 欧美日韩精品三区| 亚洲午夜私人影院| 91精品国产乱码久久蜜臀| 久久66热偷产精品| 国产日产精品1区| 色噜噜偷拍精品综合在线| 亚洲chinese男男1069| 精品国内片67194| av网站一区二区三区| 亚洲一区二区综合| 精品国产91九色蝌蚪| av在线免费不卡| 午夜亚洲福利老司机| 久久久久久影视| 色婷婷精品大在线视频| 六月丁香婷婷久久| 国产精品电影一区二区| 欧美男同性恋视频网站| 国产成人精品午夜视频免费| 91在线视频免费91| 91视频观看免费| 欧美极品少妇xxxxⅹ高跟鞋 | 91美女视频网站| 秋霞午夜鲁丝一区二区老狼| 中文字幕一区免费在线观看| 欧美伦理电影网| 成人开心网精品视频| 日本午夜一本久久久综合| 亚洲欧美福利一区二区| 精品国产露脸精彩对白| 日本韩国欧美国产| 国产呦萝稀缺另类资源| 亚洲成av人影院| 日本一区二区久久| 日韩丝袜情趣美女图片| 色婷婷久久综合| 粉嫩av亚洲一区二区图片| 午夜不卡在线视频| 亚洲天堂中文字幕| 国产精品视频看| 精品嫩草影院久久| 欧美精品亚洲一区二区在线播放| 国产91在线观看丝袜| 精品一区二区三区视频在线观看| 亚洲午夜在线视频| 亚洲激情第一区| 国产精品成人在线观看| 久久综合九色综合久久久精品综合| 欧美精品久久久久久久多人混战 | 国产伦精品一区二区三区免费迷| 亚洲一区视频在线| 中文字幕一区二区三| 欧美极品xxx| 久久精品欧美一区二区三区麻豆| 日韩欧美一区在线观看| 欧美日韩aaaaaa| 欧美日韩一区二区三区四区五区 | 一本久道久久综合中文字幕| 成人妖精视频yjsp地址| 国产精品一级片在线观看| 久久精品国产免费看久久精品| 午夜欧美视频在线观看| 亚洲综合成人网| 亚洲自拍偷拍麻豆| 一区二区高清视频在线观看| 亚洲丝袜精品丝袜在线| 自拍偷自拍亚洲精品播放| 日韩理论片网站| 亚洲黄色免费电影| 亚洲国产毛片aaaaa无费看| 亚洲自拍偷拍欧美| 日韩高清在线不卡| 美国十次综合导航| 国产精品一色哟哟哟| 成人黄页毛片网站| 91在线看国产| 欧美日韩免费电影| 日韩精品一区二区三区视频播放 | 国产亚洲欧洲一区高清在线观看| 日韩欧美一区二区免费| 精品成人一区二区三区四区| 久久久久久久综合日本| 国产精品久久久久影院| 亚洲欧美日韩国产成人精品影院 | 色婷婷激情久久| 欧美午夜视频网站| 日韩欧美中文字幕制服| 国产午夜精品美女毛片视频| 国产精品你懂的在线欣赏| 亚洲精品一二三| 日韩电影免费一区| 福利一区二区在线观看| 91成人免费电影| 欧美成人综合网站| 国产精品色哟哟| 亚洲国产视频网站| 国产一区二区三区黄视频| 91亚洲资源网| 7777精品伊人久久久大香线蕉的| 精品国产露脸精彩对白| 中文字幕制服丝袜成人av| 亚洲一区二区三区四区在线观看| 久久国产婷婷国产香蕉| 91在线观看地址| 日韩一区和二区| 1000部国产精品成人观看| 婷婷久久综合九色综合绿巨人| 国产精品中文字幕一区二区三区| 97超碰欧美中文字幕| 日韩欧美综合一区| 亚洲男同性恋视频| 精品亚洲国内自在自线福利| 成人高清视频在线| 日韩精品一区二区三区视频在线观看| 国产精品美女久久久久久久网站| 婷婷久久综合九色综合伊人色| 国产91高潮流白浆在线麻豆| 欧美群妇大交群中文字幕| 欧美激情综合五月色丁香小说| 亚洲国产美女搞黄色| 久久精品国产秦先生| 欧美私人免费视频| 国产精品萝li| 九色porny丨国产精品| 欧美性生活大片视频| 国产无一区二区| 日韩av成人高清| 在线观看不卡一区| 一区视频在线播放| 国产精品一区二区久久精品爱涩| 欧美日韩一区中文字幕| 自拍视频在线观看一区二区| 国产精品538一区二区在线| 91精品国产欧美一区二区成人| 日韩久久一区二区| eeuss鲁片一区二区三区在线观看 eeuss鲁片一区二区三区在线看 | 亚洲精品菠萝久久久久久久| 国产高清精品久久久久| 欧美一区二区三区性视频| 亚洲一区二区不卡免费| 91视频一区二区三区| 国产精品午夜在线观看| 国产综合色精品一区二区三区| 日韩一区二区三区视频| 亚洲国产另类精品专区| 色综合久久66| 亚洲精品日韩综合观看成人91| 成人精品视频一区二区三区| 久久久久久电影| 国产一区二区三区在线观看免费 | 九一久久久久久| 精品国产免费一区二区三区香蕉| 日韩高清一区二区| 日韩一区二区在线看片| 美女久久久精品| 日韩一卡二卡三卡四卡| 蜜桃视频一区二区三区在线观看| 欧美午夜片在线看| 亚洲成av人在线观看| 91精品国产综合久久福利| 日本成人在线电影网| 欧美一区二区三区喷汁尤物| 日韩极品在线观看| 日韩欧美专区在线| 国产乱对白刺激视频不卡| 26uuu久久天堂性欧美| 国产精品自拍在线| 国产精品久久久久7777按摩| 91麻豆免费看片| 亚洲一区二区三区视频在线| 欧美狂野另类xxxxoooo| 七七婷婷婷婷精品国产| 久久综合久久综合九色| 丁香一区二区三区| 亚洲欧美视频在线观看视频| 91成人国产精品| 免费看日韩a级影片| 久久精品视频一区二区三区| 不卡视频免费播放| 亚洲图片欧美一区| 日韩欧美国产小视频| 成人在线视频一区二区| 亚洲女子a中天字幕| 7799精品视频| 国产白丝精品91爽爽久久| 一区二区三区精品视频在线| 欧美高清视频不卡网| 国产黑丝在线一区二区三区| 一区二区三区四区中文字幕| 日韩一区二区在线播放| 99这里都是精品| 日韩电影在线看| 中文字幕亚洲一区二区va在线|