?? conn7.h
字號:
/*****************************************************************************
*
* Microchip DeviceNet Stack (Duplicate ID Messaging Connection Object Header)
*
*****************************************************************************
* FileName: conn7.h
* Dependencies:
* Processor: PIC18F with CAN
* Compiler: C18 02.20.00 or higher
* Linker: MPLINK 03.40.00 or higher
* Company: Microchip Technology Incorporated
*
* Software License Agreement
*
* The software supplied herewith by Microchip Technology Incorporated
* (the "Company") is intended and supplied to you, the Company's
* customer, for use solely and exclusively with products manufactured
* by the Company.
*
* The software is owned by the Company and/or its supplier, and is
* protected under applicable copyright laws. All rights are reserved.
* Any use in violation of the foregoing restrictions may subject the
* user to criminal sanctions under applicable laws, as well as to
* civil liability for the breach of the terms and conditions of this
* license.
*
* THIS SOFTWARE IS PROVIDED IN AN "AS IS" CONDITION. NO WARRANTIES,
* WHETHER EXPRESS, IMPLIED OR STATUTORY, INCLUDING, BUT NOT LIMITED
* TO, IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A
* PARTICULAR PURPOSE APPLY TO THIS SOFTWARE. THE COMPANY SHALL NOT,
* IN ANY CIRCUMSTANCES, BE LIABLE FOR SPECIAL, INCIDENTAL OR
* CONSEQUENTIAL DAMAGES, FOR ANY REASON WHATSOEVER.
*
*
* This file contains firmware to handle Duplicate ID Messaging within
* the Connection Object. The code in this object is much simpler than I/O
* and Explicit Objects because the requirements defined in the specification
* are significantly less.
*
*
*
* Author Date Comment
*~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
* Ross Fosler 04/28/03 ...
*
*****************************************************************************/
#ifndef __CONN7_H__
#define __CONN7_H__
/*********************************************************************
* Connection related variables
********************************************************************/
extern CONN_PRIV uConn7;
extern unsigned char uConn7RxBuffer[8];
extern unsigned char uConn7TxBuffer[8];
/*********************************************************************
* Function: unsigned char _Conn7Create(void)
*
* PreCondition: The CAN (or other) driver must be prepared to
* accept some filter settings.
*
* Input: none
*
* Output: unsigned char handle to the connection
*
* Side Effects: none
*
* Overview: This function creates a connection
* in the predefined set and returns a
* handle to the connection.
*
* Note: This function is not called directly by
* application code.
********************************************************************/
unsigned char _Conn7Create(void);
/*********************************************************************
* Function: unsigned char _Conn7Close()
*
* PreCondition: The connection should have already been open.
*
* Input: none
*
* Output: unsigned char instance that closed
*
* Side Effects: none
*
* Overview: Closes the specified connection.
*
* Note: none
********************************************************************/
unsigned char _Conn7Close(void);
/*********************************************************************
* Function: void _Conn7UpdateTimer(void)
*
* PreCondition: none
*
* Input: none
*
* Output: none
*
* Side Effects: none
*
* Overview: Update timer and process any timer events.
*
* Note: None
********************************************************************/
void _Conn7TimerEvent(void);
/*********************************************************************
* Function: void _Conn7RxEvent(void)
*
* PreCondition: none
*
* Input: none
*
* Output: none
*
* Side Effects: none
*
* Overview: Process received data for this connection.
*
* Note: This event occures when data has been received
* for this connection instance.
********************************************************************/
void _Conn7RxEvent(void);
/*********************************************************************
* Function: void _Conn7TxOpenEvent(void)
*
* PreCondition: A transmit request must have been made.
*
* Input: none
*
* Output: none
*
* Side Effects: none
*
* Overview: Process open transmit que event
*
* Note: This event occurs when the buffer is available
* for this connection instance to transmit. A
* transmit request must have been made to enter
* this function.
********************************************************************/
void _Conn7TxOpenEvent(void);
/*********************************************************************
* Function: void _Conn7TxEvent(void)
*
* PreCondition: Data must have been queued to transmit.
*
* Input: none
*
* Output: none
*
* Side Effects: none
*
* Overview: Process data for this connection.
*
* Note: This event occurs when the buffer has successfully
* placed the requested data on the bus.
********************************************************************/
void _Conn7TxEvent(void);
#endif /*__CONN7_H__*/
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -