?? conn6.h
字號(hào):
/*****************************************************************************
*
* Microchip DeviceNet Stack (Unconnected Explicit Messaging Connection Object Header)
*
*****************************************************************************
* FileName: conn6.h
* Dependencies:
* Processor: PIC18F with CAN
* Compiler: C18 02.10.02 or higher
* Linker: MPLINK 03.20.01 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 Unconnected Explicit 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 __CONN6_H__
#define __CONN6_H__
/*********************************************************************
* Connection related variables
********************************************************************/
extern CONN_PRIV uConn6;
extern unsigned char uConn6RxBuffer[8];
extern unsigned char uConn6TxBuffer[8];
/*********************************************************************
* Function: unsigned char _Conn6Create(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 _Conn6Create(void);
/*********************************************************************
* Function: unsigned char _Conn6Close()
*
* 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 _Conn6Close(void);
/*********************************************************************
* Function: void _Conn2RxEvent(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 _Conn6RxEvent(void);
/*********************************************************************
* Function: void _Conn6TxOpenEvent(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 _Conn6TxOpenEvent(void);
/*********************************************************************
* Function: void _Conn6TxEvent(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 _Conn6TxEvent(void);
#endif /*__CONN6_H__*/
?? 快捷鍵說明
復(fù)制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號(hào)
Ctrl + =
減小字號(hào)
Ctrl + -