ConOpSys V2970
P004.07
ANVILEX control operating system
|
#include "abcc_obj_cfg.h"
#include "abp.h"
#include "abcc_ad_if.h"
#include "abcc.h"
#include "ABCC_Base.h"
#include "ad_obj.h"
Classes | |
union | ad_AllProperties |
union | ad_AllData |
struct | ad_Map |
struct | ad_MapInfo |
Macros | |
#define | AD_OA_REV_VALUE 3 |
#define | AD_MAP_PAD_INDEX ( 0xfffe ) |
#define | AD_INVALID_ADI_INDEX ( 0xffff ) |
#define | AD_ALL_ADI_INDEX ( 0xffff ) |
#define | OctetToByteOffset(x) ( x ) |
#define | Is_BITx_Or_PADx(type) ( ABP_Is_PADx( type ) || ABP_Is_BITx( type ) ) |
#define | MIN_MAX_DEFAULT_NOT_SUPPORTED(type) ( ( (type) == ABP_CHAR ) || Is_BITx_Or_PADx( type ) ) |
#define | AddBitsToOctetSize(octet, bits) |
#define | SizeInOctets(octet, bits) ( (octet) + ( (bits) + 7 ) / 8 ) |
#define | BitToOctetOffset(bitOffset) ( (bitOffset) >> 3 ) |
Typedefs | |
typedef union ad_AllProperties | ad_AllPropertiesType |
typedef union ad_AllData | ad_AllDataType |
typedef struct ad_Map | ad_MapType |
typedef struct ad_MapInfo | ad_MapInfoType |
Functions | |
static void | Copy16WithEndianSwap (void *pxDest, U16 iDestOctetOffset, const void *pxSrc, U16 iSrcOctetOffset, U16 iNumElem) |
static void | Copy32WithEndianSwap (void *pxDest, U16 iDestOctetOffset, const void *pxSrc, U16 iSrcOctetOffset, U16 iNumElem) |
static U16 | GetAdiSizeInOctets (const AD_AdiEntryType *psAdiEntry) |
static U16 | GetAdiMapSizeInBits (const AD_AdiEntryType *psAdiEntry, U8 bNumElem, U8 bElemStartIndex) |
static void | UpdateMapSize (ad_MapInfoType *psMap) |
static U16 | GetAdiIndex (U16 iInstance) |
static U16 | CopyBitData (void *pxDest, U16 iDestBitOffset, const void *pxSrc, U16 iSrcBitOffset, U8 bDataType, U16 iNumElem) |
static U16 | CopyValue (void *pxDst, U16 iDestBitOffset, const void *pxSrc, U16 iSrcBitOffset, U8 bDataType, U16 iNumElem) |
static void | GetAdiValue (const AD_AdiEntryType *psAdiEntry, void *pxDest, U8 bNumElements, U8 bStartIndex, U16 *piDestBitOffset, BOOL fExplicit) |
static void | SetAdiValue (const AD_AdiEntryType *psAdiEntry, void *pxData, U8 bNumElements, U8 bStartIndex, U16 *piSrcBitOffset, BOOL fExplicit) |
EXTFUNC APPL_ErrCodeType | AD_Init (const AD_AdiEntryType *psAdiEntry, U16 iNumAdi, const AD_DefaultMapType *psDefaultMap) |
const AD_AdiEntryType * | AD_GetAdiInstEntry (U16 iInstance) |
void | AD_ProcObjectRequest (ABP_MsgType *psMsgBuffer) |
void | AD_UpdatePdReadData (void *pxPdDataBuf) |
BOOL | AD_UpdatePdWriteData (void *pxPdDataBuf) |
U16 | AD_AdiMappingReq (const AD_AdiEntryType **ppsAdiEntry, const AD_DefaultMapType **ppsDefaultMap) |
void | AD_RemapDone (void) |
Variables | |
static BOOL | ad_fDoNetworkEndianSwap = false |
static const AD_DefaultMapType * | ad_asDefaultMap = NULL |
static const AD_AdiEntryType * | ad_asADIEntryList = NULL |
static U16 | ad_iNumOfADIs |
static U16 | ad_iHighestInstanceNumber |
static ad_MapType | ad_PdReadMapping [AD_MAX_NUM_READ_MAP_ENTRIES] |
static ad_MapType | ad_PdWriteMapping [AD_MAX_NUM_WRITE_MAP_ENTRIES] |
static ad_MapInfoType | ad_ReadMapInfo |
static ad_MapInfoType | ad_WriteMapInfo |
#define AD_ALL_ADI_INDEX ( 0xffff ) |
#define AD_INVALID_ADI_INDEX ( 0xffff ) |
#define AD_MAP_PAD_INDEX ( 0xfffe ) |
#define AD_OA_REV_VALUE 3 |
#define AddBitsToOctetSize | ( | octet, | |
bits | |||
) |
#define BitToOctetOffset | ( | bitOffset | ) | ( (bitOffset) >> 3 ) |
#define Is_BITx_Or_PADx | ( | type | ) | ( ABP_Is_PADx( type ) || ABP_Is_BITx( type ) ) |
#define MIN_MAX_DEFAULT_NOT_SUPPORTED | ( | type | ) | ( ( (type) == ABP_CHAR ) || Is_BITx_Or_PADx( type ) ) |
#define OctetToByteOffset | ( | x | ) | ( x ) |
#define SizeInOctets | ( | octet, | |
bits | |||
) | ( (octet) + ( (bits) + 7 ) / 8 ) |
typedef union ad_AllData ad_AllDataType |
typedef union ad_AllProperties ad_AllPropertiesType |
typedef struct ad_MapInfo ad_MapInfoType |
typedef struct ad_Map ad_MapType |
U16 AD_AdiMappingReq | ( | const AD_AdiEntryType ** | ppsAdiEntry, |
const AD_DefaultMapType ** | ppsDefaultMap | ||
) |
References ad_iNumOfADIs.
const AD_AdiEntryType* AD_GetAdiInstEntry | ( | U16 | iInstance | ) |
References ad_asADIEntryList, GetAdiIndex(), and NULL.
Referenced by AD_ProcObjectRequest().
EXTFUNC APPL_ErrCodeType AD_Init | ( | const AD_AdiEntryType * | psAdiEntry, |
U16 | iNumAdi, | ||
const AD_DefaultMapType * | psDefaultMap | ||
) |
References ABCC_CFG_MAX_PROCESS_DATA_SIZE, ad_asADIEntryList, ad_asDefaultMap, ad_iHighestInstanceNumber, ad_iNumOfADIs, AD_INVALID_ADI_INDEX, AD_MAP_PAD_INDEX, AD_MAX_NUM_READ_MAP_ENTRIES, AD_MAX_NUM_WRITE_MAP_ENTRIES, ad_PdReadMapping, ad_PdWriteMapping, ad_ReadMapInfo, ad_WriteMapInfo, APPL_AD_PD_READ_SIZE_ERR, APPL_AD_PD_WRITE_SIZE_ERR, APPL_AD_TOO_MANY_READ_MAPPINGS, APPL_AD_TOO_MANY_WRITE_MAPPINGS, APPL_AD_UNKNOWN_ADI, APPL_NO_ERROR, ad_Map::bNumElements, ad_Map::bStartIndex, GetAdiIndex(), ad_Map::iAdiIndex, ad_MapInfo::iMaxNumMappedAdi, ad_MapInfo::iNumMappedAdi, ad_MapInfo::iPdSize, NULL, ad_MapInfo::paiMappedAdiList, and UpdateMapSize().
void AD_ProcObjectRequest | ( | ABP_MsgType * | psMsgBuffer | ) |
References AD_ALL_ADI_INDEX, ad_asADIEntryList, AD_GetAdiInstEntry(), ad_iNumOfADIs, ad_ReadMapInfo, ad_WriteMapInfo, GetAdiSizeInOctets(), GetAdiValue(), NULL, SetAdiValue(), and SizeInOctets.
Referenced by ABCC_CbfReceiveMsg().
void AD_RemapDone | ( | void | ) |
void AD_UpdatePdReadData | ( | void * | pxPdDataBuf | ) |
References ad_asADIEntryList, ad_iNumOfADIs, AD_MAP_PAD_INDEX, ad_ReadMapInfo, ad_Map::bNumElements, ad_Map::bStartIndex, ad_Map::iAdiIndex, ad_MapInfo::iNumMappedAdi, ad_MapInfo::paiMappedAdiList, and SetAdiValue().
BOOL AD_UpdatePdWriteData | ( | void * | pxPdDataBuf | ) |
References ad_asADIEntryList, ad_iNumOfADIs, AD_MAP_PAD_INDEX, ad_WriteMapInfo, ad_Map::bNumElements, ad_Map::bStartIndex, GetAdiValue(), ad_Map::iAdiIndex, ad_MapInfo::iNumMappedAdi, and ad_MapInfo::paiMappedAdiList.
|
static |
References AddBitsToOctetSize.
Referenced by CopyValue().
|
static |
References ad_fDoNetworkEndianSwap, BitToOctetOffset, Copy16WithEndianSwap(), Copy32WithEndianSwap(), CopyBitData(), and Is_BITx_Or_PADx.
Referenced by GetAdiValue(), and SetAdiValue().
References ad_asADIEntryList, ad_iNumOfADIs, AD_INVALID_ADI_INDEX, and AD_MAP_PAD_INDEX.
Referenced by AD_GetAdiInstEntry(), and AD_Init().
|
static |
References NULL.
Referenced by GetAdiValue(), and UpdateMapSize().
|
static |
|
static |
References CopyValue(), GetAdiMapSizeInBits(), NULL, and SizeInOctets.
Referenced by AD_ProcObjectRequest(), and AD_UpdatePdWriteData().
|
static |
References CopyValue(), and NULL.
Referenced by AD_ProcObjectRequest(), and AD_UpdatePdReadData().
|
static |
References ad_asADIEntryList, ad_iNumOfADIs, AD_MAP_PAD_INDEX, ad_Map::bNumElements, ad_Map::bStartIndex, GetAdiMapSizeInBits(), ad_Map::iAdiIndex, ad_MapInfo::iNumMappedAdi, ad_MapInfo::iPdSize, ad_MapInfo::paiMappedAdiList, and SizeInOctets.
Referenced by AD_Init().
|
static |
Referenced by AD_GetAdiInstEntry(), AD_Init(), AD_ProcObjectRequest(), AD_UpdatePdReadData(), AD_UpdatePdWriteData(), GetAdiIndex(), and UpdateMapSize().
Referenced by CopyValue().
|
static |
Referenced by AD_AdiMappingReq(), AD_Init(), AD_ProcObjectRequest(), AD_UpdatePdReadData(), AD_UpdatePdWriteData(), GetAdiIndex(), and UpdateMapSize().
|
static |
Referenced by AD_Init().
|
static |
Referenced by AD_Init().
|
static |
Referenced by AD_Init(), AD_ProcObjectRequest(), and AD_UpdatePdReadData().
|
static |
Referenced by AD_Init(), AD_ProcObjectRequest(), and AD_UpdatePdWriteData().