/*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*\
File: OCTVC1_PKT_API.h
Copyright (c) 2018 Octasic Inc. All rights reserved.
Description:
This program is free software; you can redistribute it and/or modify
it under the terms of the GNU Affero General Public License as published by
the Free Software Foundation; either version 3 of the License, or
(at your option) any later version.
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
You should have received a copy of the GNU Affero General Public License
along with this program. If not, see .
Release: Octasic Application Development Framework OCTADF-04.10.01-B3387 (2018/01/29)
$Revision: $
\*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*/
#ifndef __OCTVC1_PKT_API_H__
#define __OCTVC1_PKT_API_H__
/***************************** INCLUDE FILES *******************************/
#include "octvc1_pkt_api_rc.h"
#include "../../octdev_types.h"
#include "../../octdev_macro.h"
#include "../../../common/octtransapi/include/octtransapi.h"
#include "../octvc1_generic_rc.h"
#include "../octvc1_fifo.h"
#include "../octvc1_handle.h"
#include "../octvocnet_pkt.h"
#include "../octvc1_msg.h"
#include "../main/octvc1_main_api.h"
/*--------------------------------------------------------------------------
C language
----------------------------------------------------------------------------*/
#ifdef __cplusplus
extern "C" {
#endif
/***************************** DEFINES **************************************/
/*--------------------------------------------------------------------------
API Packet Types
----------------------------------------------------------------------------*/
#define tOCTVC1_PKT_API_PKT_TYPE_ENUM tOCT_UINT32
#define cOCTVC1_PKT_API_PKT_TYPE_ENUM_INVALID 0xFFFFFFFF
#define cOCTVC1_PKT_API_PKT_TYPE_ENUM_RSP 0
#define cOCTVC1_PKT_API_PKT_TYPE_ENUM_EVENT 1
#define cOCTVC1_PKT_API_PKT_TYPE_ENUM_DATA 2
#define cOCTVC1_PKT_API_PKT_TYPE_ENUM_DISCOVER 3
#define cOCTVC1_PKT_API_PKT_TYPE_ENUM_CMD 4
#define cOCTVC1_PKT_API_PKT_TYPE_ENUM_MAX (cOCTVC1_PKT_API_PKT_TYPE_ENUM_CMD)
#define cOCTVC1_PKT_API_PKT_TYPE_ENUM_CNT (cOCTVC1_PKT_API_PKT_TYPE_ENUM_MAX + 1)
#define tOCTVC1_PKT_API_RCV_MASK tOCT_UINT32
#define cOCTVC1_PKT_API_RCV_MASK_RSP (1<