background image

 

Software Library Reference Manual for VME 429  

 

201

 

   

 

Section 10 – Troubleshooting 

Driver Co

m

m

an

Cod

e

s

 

Function Call 

Library Ad

ministr

a

tion

 

– App C 

Syste

m

 – Ap

p D 

Memo

ry - Ap

p E 

Trans

m

itter - App F 

Rec

e

iver - 

App G 

Recie

ver Mo

niter  

Ap

Replay 

- App

 I 

Scenario - 

App J 

TroubleSho

oting - 

App

 

0x65 

Api429CmdReplayStatus 

 

 

 

 

 

 

 

 

 

0x70 

Api429CmdTxIni 

 

 

 

 

 

 

 

 

 

0x71 

Api429CmdTxAmpIni 

 

 

 

 

 

 

 

 

 

0x72 

Api429CmdTxFrmTimeIni 

 

 

 

 

 

 

 

 

 

0x72 

Api429CmdTxFrmTimeIniEx 

 

 

 

 

 

 

 

 

 

0x73 

Api429CmdTxXferDef 

 

 

 

 

 

 

 

 

 

0x73 

Api429CmdTxXferDefEx 

 

 

 

 

 

 

 

 

 

0x74 

Api429CmdTxXferData 

 

 

 

 

 

 

 

 

 

0x75 

Api429CmdTxMinFrameInst 

 

 

 

 

 

 

 

 

 

0x76 

Api429CmdTxMajFrameInst 

 

 

 

 

 

 

 

 

 

0x77 

Api429CmdTxXferDel 

 

 

 

 

 

 

 

 

 

0x78 

Api429CmdTxMinFrmDel 

 

 

 

 

 

 

 

 

 

0x79 

Api429CmdTxMajFrmDel 

 

 

 

 

 

 

 

 

 

0x7A 

Api429CmdTxStart 

 

 

 

 

 

 

 

 

 

0x7B 

Api429CmdTxHalt 

 

 

 

 

 

 

 

 

 

0x7C 

Api429CmdTxStatusRead 

 

 

 

 

 

 

 

 

 

0x7D 

Api429CmdTxXferRead 

 

 

 

 

 

 

 

 

 

0x7E 

Api429CmdTxReplayData 

 

 

 

 

 

 

 

 

 

0x7F 

Api429CmdTxXferEnaDis 

 

 

 

 

 

 

 

 

 

0x81 

Api429CmdTxGetBufAddress 

 

 

 

 

 

 

 

 

 

0x82 Api429CmdTxXferEnaMixChannel 

 

 

 

 

 

 

 

 

 

0x83 

Api429CmdTxXferReadEx

 

 

 

 

 

 

 

 

 

 

0x90 

Api429CmdRxIni 

 

 

 

 

 

 

 

 

 

0x91 

Api429CmdRxLabCon 

 

 

 

 

 

 

 

 

 

0x92 

Api429CmdRxLabDataCon 

 

 

 

 

 

 

 

 

 

0x93 

Api429CmdRxStart 

 

 

 

 

 

 

 

 

 

0x94 

Api429CmdRxHalt 

 

 

 

 

 

 

 

 

 

0x95 

Api429CmdRxStatusRead 

 

 

 

 

 

 

 

 

 

0x96 

Api429CmdRxLabRead 

 

 

 

 

 

 

 

 

 

0x97 

Api429CmdRxLabDataRead 

 

 

 

 

 

 

 

 

 

0x98 

Api429CmdRxPollBlkDef 

 

 

 

 

 

 

 

 

 

Содержание AMC429

Страница 1: ...erence manual April 2010 V07 0x Rev A AIM GmbH Sasbacher Str 2 79111 Freiburg Germany Tel 49 761 45229 0 Fax 49 761 45229 33 sales aim online com www aim online com ARINC 429 Interface Module for VxWo...

Страница 2: ......

Страница 3: ...VME 429 for VxWorks Software Library Reference Manual AVI429 VME Version AMC429 PMC Version AVC429 PMC on AVC carrier V07 0x Rev A April 2010 AIM No 60 12400 36 070X A...

Страница 4: ...M 1553 866 AIM A429 salesusa aim online com AIM UK Cressex Business Park Lincoln Rd High Wycombe Bucks HP12 3RB England 44 1494 44 68 44 salesuk aim online com Notice The information that is provided...

Страница 5: ...5 4x Revision A 03 05 2005 Jochen Pfaadt See Appendix A for details 5 4x Revision B 20 06 2005 J Furgerson See Appendix A for details 5 6x Revision A 29 06 2007 Jochen Pfaadt See Appendix A for detail...

Страница 6: ...iv THIS PAGE IS INTENTIONALLY LEFT BLANK...

Страница 7: ...l 12 2 1 4 Api429Init 13 2 1 5 Api429InstIntHandler 14 2 1 6 Api429SetTgEmul 20 2 1 7 Api429SetDllDbgLevel 21 2 1 8 Avi429Close 22 2 1 9 Avi429Open 23 2 2 VME Intialization Functions 24 2 2 1 AiVmeExa...

Страница 8: ...Api429CmdTxMinFrmDel 91 5 12 Api429CmdTxReplayData 92 5 13 Api429CmdTxStart 96 5 14 Api429CmdTxStartEx 98 5 15 Api429CmdTxStatusRead 102 5 16 Api429CmdTxXferDataDef 103 5 17 Api429CmdTxXferDataRead 1...

Страница 9: ...4 Api429CmdRmTrgParamDef 168 7 15 Api429CmdRmTrgStartDef 170 7 16 Api429CmdRmTrgStopDef 172 8 REPLAY FUNCTIONS 175 8 1 Api429CmdReplayIni 176 8 2 Api429CmdReplayStatus 179 8 3 Api429WriteRepData 181 9...

Страница 10: ...s 200 Table A I Summary of Changes for each Version Update 210 Table A I Summary of Version Changes for each S W Library Function 215 LIST OF FIGURES Figure Title Page Figure 1 3 3 1 Document Conventi...

Страница 11: ...and AVI429 avionics interface modules This Software Library Reference Manual provides the user with detailed VME 429 programming information including library function call and header file details and...

Страница 12: ...ing Section 10 contains helpful information enabling the user to interpret error messages and steps to take to correct those errors Section 5 Transmitter Functions Section 6 Receiver Functions Section...

Страница 13: ...own in blue for example C Windows System32 Drivers Aim_mil sys A smaller version of this font will be used to list software code In addition to text and layout convention there are a couple of naming...

Страница 14: ...in Api429 h Structures Named as ty_api_name where name is unique to the structure located in Api429 h Functions Named as either Api429name or Api429Cmdname Api429name functions do not involve driver...

Страница 15: ...e of the return value Will show Void if there is no return value Specifies the hex code for the driver command used by the target s w to accomplish the action required by the function See Section 10 f...

Страница 16: ...ion calls require the parameter b_Module In order to simplify the manual this function parameter is not detailed in the documentation for each function call therefore it is defined here as follows b_M...

Страница 17: ...s a general overview of how to access AIM cards using the VME bus AMC429 Hardware Manual the hardware user s manual for the AMC429 PMC modules The document covers the hardware installation the board c...

Страница 18: ...8 Software Library Reference Manual for VME 429 Section 1 Introduction THIS PAGE IS INTENTIONALLY LEFT BLANK...

Страница 19: ...Function Description Api429Init Initializes the Application Interface Avi429Open Initializes the Module Interface Avi429Close Closes the Module Interface Api429GetTgEmul Gets current emulation mode Ap...

Страница 20: ...the function Api429InstIntHandler I In np pu ut t A Ai iU UI In nt t8 8 u uc c_ _T Ty yp pe e Interrupt Type Defines the type of interrupt which will be uninstalled for the given AIM board Note At th...

Страница 21: ...Int8 b_Module AiUInt8 b_Ena D Dr ri iv ve er r C Co om mm ma an nd d None P Pu ur rp po os se e This function controls the Error Message Handler of the application interface I In np pu ut t A Ai iU UI...

Страница 22: ...iUInt8 Api429GetTgEmul AiUInt8 b_Module D Dr ri iv ve er r C Co om mm ma an nd d None P Pu ur rp po os se e This function returns the current emulation status of the application interface I In np pu u...

Страница 23: ...pe e AiUInt8 Api429Init void D Dr ri iv ve er r C Co om mm ma an nd d None P Pu ur rp po os se e This function initializes the entire application interface and must be called first in an application p...

Страница 24: ...terrupt Type Defines the type of interrupt which will be connected to the interrupt handler function given in parameter pf_IntFunc Note At the moment this type is always 0 but in the future there will...

Страница 25: ...Loglist Event Entry Word 1 Bit 31 Bit 30 Bit 29 Bit 28 Bit 27 Bit 26 Bit 25 Bit 24 INT_TAG_FIELD Bit 23 Bit 22 Bit 21 Bit 20 Bit 19 Bit 18 Bit 17 Bit 16 INT_TAG_FIELD CHN_ID Bit 15 Bit 14 Bit 13 Bit...

Страница 26: ...ceived A AE EI I RX Label Receive Operation Any Error Interrupt set to 1 if any error is detected in the receive stream P PT TI I Transmit Operation Interrupt on TRANSFER Instruction Execution set to...

Страница 27: ...INDI Bit Index Reload If the Current Index is decremented to zero this 10 bit value is loaded into the Current Index field Current Index If not zero the 10 bit Current Index field is decremented afte...

Страница 28: ...rent Index field Current Index If not zero the 10 bit Current Index field is decremented after each access to the data buffer If the last buffer is filled Current Index reaches zero the current index...

Страница 29: ...ration Functions A Ai iU UI In nt t3 32 2 u ul l_ _L Ll lc c Reserved A Ai iU UI In nt t3 32 2 u ul l_ _L Ll ld d Reserved O Ou ut tp pu ut t none R Re et tu ur rn n V Va al lu ue e Value Constant Des...

Страница 30: ...nd d None P Pu ur rp po os se e This function sets the current emulation mode of the application interface I In np pu ut t A Ai iU UI In nt t8 8 b b_ _E Em mu ul l Value Description 0 Disable reset c...

Страница 31: ...e This function sets the debug level of the application interface It allows to control the amount of debug output generated I In np pu ut t A Ai iU UI In nt t8 8 u ul l_ _D Dl ll lD Db bg gL Le ev ve...

Страница 32: ...ma an nd d None P Pu ur rp po os se e This function closes the application interface for the specified module and must be called last in an application program Note No function except Avi429Open shal...

Страница 33: ...nction initializes the application interface for the specified module and must be called first before any other function is applied for the specified module I In np pu ut t A Ai iU UI In nt t8 8 b b_...

Страница 34: ...r PMC on AVC AiUInt32 ul_TempA32Addr AiUInt32 ul_TempA32UserAccess TY_VME_EXAMINE_SLOT A Ai iU UI In nt t3 32 2 u ul l_ _A A1 16 6A Ad dd dr r Is a User defined address in the VME A16 address space wh...

Страница 35: ...vision ID AiUInt8 uc_Bist PCI BIST register AiUInt8 uc_HeaderType PCI header type AiUInt8 uc_LatencyTimer PCI latency timer AiUInt8 uc_CacheLineSize PCI cache line size AiUInt32 ul_BAR 6 Base address...

Страница 36: ...known Arinc 429 board I In np pu ut t T TY Y_ _V VM ME E_ _M MA AP P_ _M MO OD DU UL LE E i in n Parameters used to map this board to the VME bus in function AiVme429MapModule O Ou ut tp pu ut t None...

Страница 37: ...i iv ve er r C Co om mm ma an nd d None P Pu ur rp po os se e This commands scan the local PCI bus for known devices and internally stores the PCI headers of all boards found It allows to use the AiPc...

Страница 38: ...called first I In np pu ut t A Ai iU UI In nt t3 32 2 u ul lM Mo od du ul le eI In nd de ex x This is an index to the PCI module from which the PCI header shall be returned An index of zero returns t...

Страница 39: ...vel can be applied to the board Note if two PMC boards are driven on the same AVC 2 carrier both must have the same interrupt level and vector A Ai iU UI In nt t3 32 2 u ul l_ _I Ir rV Ve ec ct to or...

Страница 40: ...activities on a interrupt This function must be from the type INTERRUPT_FUNC which is defined as follows typedef void INTERRUPT_FUNC AiUInt8 uc_Module AiUInt8 uc_Biu AiUInt8 uc_Type TY_API_INTR_LOGLI...

Страница 41: ...E A32 address space where the user wants to see the memory of the VME Carrier s AMC429 Module or the AVI429 module in the VME address space real physical A32 address The memory size for the module in...

Страница 42: ...et to zero T TY Y_ _P PC CI I_ _I IN NF FO O p px x_ _P PC CI I_ _I In nf fo o Pointer to the PCI info element for this board It determines for which board the additional settings are To get this para...

Страница 43: ...Co om mm ma an nd d none P Pu ur rp po os se e This function undoes the mapping of a board to the VME bus or local PCI bus I In np pu ut t T TY Y_ _V VM ME E_ _M MA AP P_ _M MO OD DU UL LE E_ _I IN N...

Страница 44: ...34 Software Library Reference Manual for VME 429 Section 2 Library Administration Functions THIS PAGE IS INTENTIONALLY LEFT BLANK...

Страница 45: ...itializes the AIM board Api429CmdReset Initializes the hardware and ASP driver software Api429CmdBite Performs a selftest Api429CmdDefChnSpeed Defines the channel speed Api429CmdReadDrvVer Reads the D...

Страница 46: ...T command Note the time source will be set to internal during the self test I In np pu ut t A Ai iU UI In nt t8 8 b b_ _F Fu un nc c Selftest Function Value Description 0 Execute all test 1 Board Enab...

Страница 47: ...Data Pattern Test 2 Walking Bit Test 3 Addressing Test 4 Bus Test Note The echo value contains in the high nibble part the BIU number which failed the test only for test no 1 board enable test high n...

Страница 48: ...equal to the returned pl_stat value The number of interrupt events is cleared with every call of this function If pl_Stat is 32 the entries in the structure TY_API429_INTR_REGS are undefined and set t...

Страница 49: ...from which channel this loglist entry was made U UD DF F Update Flag set by the BIU processor when the entry is updated T TX XI I Transmit interrupt set to one if interrupt from TX channel R RS ST TP...

Страница 50: ...13 Bit 12 Bit 11 Bit 10 Bit 9 Bit 8 ADLP CMBFP CILP RNBP Bit 7 Bit 6 Bit 5 Bit 4 Bit 3 Bit 2 Bit 1 Bit 0 ADLP CMBFP CILP RNBP A AD DL LP P Receive operation current label descriptor pointer when FBI o...

Страница 51: ...mand is utilized to enable disable storing of a channel s interrupt information into the Interrupt Loglist Area of the Shared Memory I In np pu ut t A Ai iU UI In nt t8 8 b b_ _C Ch hn n Channel Numbe...

Страница 52: ...the Board Operation Start Transmitter Operation or Start Receiver and Monitor Operation Command I In np pu ut t A Ai iU UI In nt t8 8 b b_ _C Ch hn n Channel Number Value Description 1 32 API429 chann...

Страница 53: ...t t A Ai iU UI In nt t8 8 b b_ _M Mo od de e Value Description 1 Timetag source 4 Boot LCA 5 Boot BIU 6 Execute BIU Interrupt Routine 7 255 reserved Note It takes several seconds approx 5 seconds unti...

Страница 54: ...ct AiUInt8 b_DayHi AiUInt8 b_DayLo AiUInt8 b_Hour AiUInt8 b_Min AiUInt8 b_Sec AiUInt8 b_MsHi AiUInt8 b_MsLo AiUInt8 b_mode AiUInt8 b_irig_src AiUInt8 b_irig_sync TY_API429_IRIG_TIME A Ai iU Ui in nt t...

Страница 55: ...IRIG source A Ai iU UI In nt t8 8 i ir ri ig g_ _s sy yn nc c IRIG time synchronized Value Constant Description 0 API_IRIG_NOT_SYNC IRIG time is not synchronized 1 API_IRIG_SYNC IRIG time is synchron...

Страница 56: ...i iP Pa ar r Pointer to Initialize Parameter Data structure api429 h typedef struct AiUInt8 lca_id AiUInt8 padding1 AiUInt16 padding2 AiUInt16 asp_drv_id AiUInt16 asp_mon_id AiUInt16 asp_bite_id AiUIn...

Страница 57: ...ad dd dr r Global Memory Base Address A Ai iU UI In nt t3 32 2 l lo oc c_ _d dr ra am m_ _s si iz ze e ASP Local Memory Size in 64 Kbytes steps A Ai iU UI In nt t3 32 2 l lo oc c_ _d dr ra am m_ _a a...

Страница 58: ...ion two digit BCD 00 reserved unset 01 A 02 B 09 I 10 J 11 K 26 Z 27 30 reserved 31 56 A1 Z1 57 60 reserved 61 86 A2 Z2 87 99 reserved HW Version Description four digit BCD 0000 reserved unset 0100 Ve...

Страница 59: ...00 0x00 8 bit 8 bit 8 bit 8 bit PCI Device Header Type Registers Register Number Register Name Description Byte Offset Default Value Width 4 baddr1 Base Address Register 1 10h 32 bit 5 baddr2 Base Add...

Страница 60: ...ards I In np pu ut t A Ai iU UI In nt t3 32 2 u ul l_ _D Di is sc cr re et te eS Se et tu up p Bit 31 Bit 30 Bit 29 Bit 28 Bit 27 Bit 26 Bit 25 Bit 24 Reserved 0 Bit 23 Bit 22 Bit 21 Bit 20 Bit 19 Bit...

Страница 61: ...ver Software into an executable format Note No further ASP Driver Command shall be called when starting the downloaded code Mode 2 since the target software is restarted Api429Close function must foll...

Страница 62: ...t Checksum Status Value Description 0 Checksum ok 1 No S Record string 2 Wrong S Record type 3 Checksum error 4 Addressing error A Ai iU UI In nt t3 32 2 p pl l_ _F FS Si iz ze e Downloaded Data Byte...

Страница 63: ...d Flash Prom devices for update purposes ASP Driver Software BIU Firmware I In np pu ut t A Ai iU UI In nt t3 32 2 l l_ _S Sr rc cA Ad dd dr r Source RAM Address A Ai iU UI In nt t3 32 2 l l_ _S Se ec...

Страница 64: ...VER_READ_EX 0x4038 P Pu ur rp po os se e This function returns the version numbers of all board software package components for the AIM board I In np pu ut t None O Ou ut tp pu ut t The following stru...

Страница 65: ..._A AP PI I4 42 29 9_ _V VE ER RS SI IO ON N x x_ _P Pc ci iL Lc ca aV Ve er r Version information of the Onboard PCI LCA only valid for AMC429 and APM429 boards Note Only valid for AMC429 and APM429...

Страница 66: ...lity Status of the current BSP components relating to the DLL Value Constant Description 0 API429_BSP_COMPATIBLE BSP components are compatible 3 API429_BSP_WRONG_TARGET_SW The Target Software is not c...

Страница 67: ...the function Api429CmdInitDiscretes I In np pu ut t None O Ou ut tp pu ut t A Ai iU UI In nt t3 32 2 p pu ul l_ _V Va al lu ue e Bit 31 Bit 30 Bit 29 Bit 28 Bit 27 Bit 26 Bit 25 Bit 24 Reserved 0 Bit...

Страница 68: ...e er r C Co om mm ma an nd d API429_VER_READ 0x38 P Pu ur rp po os se e This command reads the API429 Driver Software Version Number I In np pu ut t none O Ou ut tp pu ut t A Ai iU UI In nt t1 16 6 p...

Страница 69: ...p pu ut t T TY Y_ _A AP PI I4 42 29 9_ _R RE ES SE ET T_ _C CM MD D p px x_ _C Cm md d Pointer to the reset command structure api429 h typedef struct AiUInt8 res_ctl AiUInt8 glob_speed_mod AiUInt8 low...

Страница 70: ...ector two low speed rates may be selected global for all low speed channels For high speed channels this setting has no effect Value Description 0 12 50 kBits s Standard 1 13 33 kBits s Intermediate A...

Страница 71: ...n ne el l C Co on nf fi ig gu ur ra at ti io on n This field stores the channel configuration Bit 0 corresponds to channel 1 bit 31 corresponds to channel 32 Note The channels cannot be configured for...

Страница 72: ...onds to channel 32 Bit Value Description 0 Channel is Receiver 1 Channel is Transmitter A Ai iU UI In nt t3 32 2t tx xr rx x_ _m me em m_ _s st ta ar rt t Start address of TX RX memory area Channel 1...

Страница 73: ...h typedef struct AiUInt8 b_DayHi AiUInt8 b_DayLo AiUInt8 b_Hour AiUInt8 b_Min AiUInt8 b_Sec AiUInt8 b_MsHi AiUInt8 b_MsLo AiUInt8 b_mode AiUInt8 b_irig_src AiUInt8 b_irig_sync TY_API429_IRIG_TIME A Ai...

Страница 74: ...iption 0 API_IRIG_INTERN Switch IRIG source to internal IRIG time generator 1 API_IRIG_EXTERN Switch IRIG source permanently to external IRIG time generator Note on AMC429 free wheeling mode is always...

Страница 75: ...for APM429 boards Since the discretes are programmable on an APM429 board be sure to have setup the discrete outputs with the function Api429CmdInitDiscretes I In np pu ut t A Ai iU UI In nt t3 32 2...

Страница 76: ...erved 0 Bit 15 Bit 14 Bit 13 Bit 12 Bit 11 Bit 10 Bit 9 Bit 8 Reserved 0 Bit 7 Bit 6 Bit 5 Bit 4 Bit 3 Bit 2 Bit 1 Bit 0 OUT OUT OUT OUT OUT OUT OUT OUT OUT Note For APM429 cards the bits are only val...

Страница 77: ...function calls in this table are listed in a functional order however the detailed descriptions of the Memory function calls in the following sections are in alphabetical order Table 4 I Memory Funct...

Страница 78: ...ss I In np pu ut t A Ai iU UI In nt t8 8 u uc c_ _W WC Co ou un nt t Value Description 1 255 Amount of data words to read 1 Read one data word 255 Read 255 data words Note 1 Data Word 4 Bytes A Ai iU...

Страница 79: ...ecific start address I In np pu ut t A Ai iU UI In nt t8 8 u uc c_ _W WC Co ou un nt t Value Description 1 255 Amount of data words to write 1 Write one data word 255 Write 255 data words Note 1 Data...

Страница 80: ...es a direct access to the AIM board memory with the specified offset address I In np pu ut t A Ai iU UI In nt t8 8 m me em mt ty yp pe e Memory Type to be accessed Value Constant Description 0 API_MEM...

Страница 81: ...a_ _p p Data to read to This pointer should match to the data size given in the parameter width A Ai iU UI In nt t3 32 2 p pu ul l_ _B By yt te es sR Re ea ad d Amount of bytes actually read R Re et t...

Страница 82: ...em mt ty yp pe e Memory Type to be accessed Value Constant Description 0 API_MEMTYPE_GLOBAL Global Memory access 1 API_MEMTYPE_SHARED Shared Memory access 2 API_MEMTYPE_LOCAL Local Memory access 3 API...

Страница 83: ...d offset address I In np pu ut t A Ai iU UI In nt t8 8 m me em mt ty yp pe e Memory Type to be accessed Value Constant Description 0 API_MEMTYPE_GLOBAL Global Memory access 1 API_MEMTYPE_SHARED Shared...

Страница 84: ...Functions O Ou ut tp pu ut t A Ai iU UI In nt t3 32 2 p pu ul l_ _B By yt te es sW Wr ri it tt te en n Amount of bytes actually written R Re et tu ur rn n V Va al lu ue e Value Constant Description 0...

Страница 85: ...mt ty yp pe e Memory Type to be accessed Value Constant Description 0 API_MEMTYPE_GLOBAL Global Memory access 1 API_MEMTYPE_SHARED Shared Memory access 2 API_MEMTYPE_LOCAL Local Memory access 3 API_ME...

Страница 86: ...76 Software Library Reference Manual for VME 429 Section 4 Memory Functions THIS PAGE IS INTENTIONALLY LEFT BLANK...

Страница 87: ...er operation Api429CmdTxStatusRead Reads transmitter status Framing Rate Oriented Mode Functions Api429CmdTxXferDef Defines a transmitter Label Transfer Api429CmdTxXferDefEx Defines a transmitter Labe...

Страница 88: ...ter a Api429CmdReset command or the Api429CmdTxIni command the related D A converter is loaded with 0x7A which corresponds to an output voltage of 9 0 Volt line to line I In np pu ut t A Ai iU UI In n...

Страница 89: ...teps Note After a Api429CmdReset command or the Api429CmdTxIni command the minor frame time is set to 100ms Note This command is obsolete Please use Api429CmdTxFrmTimeIniEx instead I In np pu ut t A A...

Страница 90: ...ted API429 transmitter channel in 1ms steps Note After a Api429CmdReset command or the Api429CmdTxIni command the minor frame time is set to 100ms I In np pu ut t A Ai iU UI In nt t8 8 b b_ _C Ch hn n...

Страница 91: ...ue Description 1 32 API429 transmitter channel number A Ai iU UI In nt t3 32 2 u ul l_ _X Xf fe er rI Id d Label Transfer Identifier Value Description 0 1024 Label Transfer Identifier O Ou ut tp pu ut...

Страница 92: ...stops the transmitter operation label transfers in major frame or acyclic on the selected API429 transmitter channel I In np pu ut t A Ai iU UI In nt t8 8 b b_ _C Ch hn n Channel Number Value Descrip...

Страница 93: ...The transmitter operation is halted the high and low priority stack pointer are initialized and the channel amplitude and the minor frame time are set to the following default values Amplitude 10 Vol...

Страница 94: ...y y Parity Mode Value Description 0 The MSB of the ARINC429 data word will be transmitted as parity bit 1 The MSB of the ARINC429 data word will be transmitted as data bit O Ou ut tp pu ut t none R Re...

Страница 95: ...mitter mode b_Mode in the Api429CmdTxIni command is set to replay mode Note This command dynamically allocates memory in the global memory section to work It needs about 4 Byte per minor frame in that...

Страница 96: ...ame on the selected API429 transmitter channel As a result the starting minor frame identifier is set to 1 and the number of minor frames is set to 1 Note This command is not accessible if the transmi...

Страница 97: ...in the Api429CmdTxIni command is set to replay mode Note This command is obsolete Please use Api429CmdTxMinFrameInstEx instead Note This command dynamically allocates memory in the global memory sect...

Страница 98: ...ftware Library Reference Manual for VME 429 Section 5 Transmitter Functions R Re et tu ur rn n V Va al lu ue e Value Constant Description 0 API429_CMD_OK Execution success 1 API429_CMD_ERR Execution e...

Страница 99: ...e Note This command dynamically allocates memory in the global memory section to work It needs about 4 Byte per transfer called in this minor frame as in ul_XferCnt I In np pu ut t A Ai iU UI In nt t8...

Страница 100: ...E_ _O OU UT T p px x_ _M MF Fr ra am me eI In nf fo o Pointer to MFrame output structure typedef struct AiUInt32 ul_MFrameAddr TY_API429_MFRAME_OUT A Ai iU UI In nt t8 8 b b_ _F Fr rm mI Id d Address...

Страница 101: ...ame specified by its frame identifier on the selected API429 channel Note This command is not accessible if the transmitter mode b_Mode in the Api429CmdTxIni command is set to replay mode I In np pu u...

Страница 102: ...ed API429 32 transmitter channel I In np pu ut t A Ai iU UI In nt t8 8 b b_ _C Ch hn n Channel Number Value Description 1 32 API429 transmitter channel number A Ai iU UI In nt t1 16 6 w w_ _D DS Si iz...

Страница 103: ...1023 The correct destination half buffer is automatically detected After a Api429CmdTxIni command the first two calls of this command will setup both replay half buffers Then the transmitter can be st...

Страница 104: ...depends on frame time Frame 2 Frame 3 Frame 4 Frame 31 Frame 32 Replay Data Block One Replay Half Buffer DSIZE 31 0 ARINC Words ARINC Words ARINC Words Note Frame 3 e g is an empty frame 1 Delay Time...

Страница 105: ...16 22 32 23 64 24 128 25 256 26 512 27 1024 28 2048 29 4096 30 8192 Note If delay mode is specified for any frame in the Replay block then it must be specified for all frames in the block However diff...

Страница 106: ...ber Value Description 0 Affect all API429 transmitter channel numbers not for replay and physical replay 1 32 API429 transmitter channel number A Ai iU UI In nt t8 8 b b_ _S St ta ar rt tM Mo od de e...

Страница 107: ...alue references the minor frame identifier used in the function Api429CmdTxMinFrameInst incremented by 1 2 Loop Pollution Not used 3 Replay 0 Cyclic execution of the replay transmission 1 FFFFh Times...

Страница 108: ...er channel number T TY Y_ _A AP PI I4 42 29 9_ _T TX XS ST TA AR RT T p px x_ _T Tx xS St ta ar rt tI In n Api429CmdTxStart input structure typedef struct AiUInt32 l_StartMode AiUInt32 l_Mode AiUInt32...

Страница 109: ...a Major Frame Note Attention This value references the minor frame identifier used in the function Api429CmdTxMinFrameInst incremented by 1 2 Loop Pollution Not used 3 Replay 0 Cyclic execution of th...

Страница 110: ...ularity is 500us for AMC429 and APX429 For API429 it is 1ms Figure 5 13 1 Transmitter Label Transfer Cycle Major Frame Figure 5 13 2 Transmitter Label Transfer Frame Minor Frame TX Starts Re Starts au...

Страница 111: ...Reference Manual for VME 429 101 Section 5 Transmitter Functions O Ou ut tp pu ut t None R Re et tu ur rn n V Va al lu ue e Value Constant Description 0 API429_CMD_OK Execution success 1 API429_CMD_ER...

Страница 112: ...Ou ut tp pu ut t A Ai iU UI In nt t8 8 p pb b_ _T Tx xS St ta at tu us s Transmitter Execution Status Value Constant Description 1 API429_HALT TX halted 2 API429_BUSY TX busy A Ai iU UI In nt t3 32 2...

Страница 113: ...care 1 In this mode bits 7 0 build the label number The bits 30 8 are the mask for the discrete register I In np pu ut t A Ai iU UI In nt t8 8 b b_ _C Ch hn n Channel Number Value Description 1 32 AP...

Страница 114: ...te w_BufSize should not be larger than 1024 w_BufStart A Ai iU UI In nt t3 32 2 p pl l_ _L LD Da at ta a Label Data Words MSB first O Ou ut tp pu ut t none R Re et tu ur rn n V Va al lu ue e Value Con...

Страница 115: ...TA A_ _R RE EA AD D_ _I IN NP PU UT T p px x_ _X Xf fe er rD Da at ta aI In np pu ut t Pointer to XferDataInput structure api429 h typedef struct AiUInt32 ul_XferId AiUInt32 ul_BufStart AiUInt32 ul_B...

Страница 116: ...e label data given in ul_XferData Bit 31 Bit 30 Bit 29 Bit 28 Bit 27 Bit 26 Bit 25 Bit 24 UPD DAYS Bit 23 Bit 22 Bit 21 Bit 20 Bit 19 Bit 18 Bit 17 Bit 16 DAYS HOURS Bit 15 Bit 14 Bit 13 Bit 12 Bit 11...

Страница 117: ...uffer contents may be defined with the Api429CmdTxXferData command The allocated buffer should be released using the Api429CmdTxXferDel command Note This command is not accessible if the transmitter m...

Страница 118: ...eset command is set to 1 A Ai iU UI In nt t8 8 p pa ad dd di in ng g1 1 Reserved 0 A Ai iU UI In nt t1 16 6 i ir r_ _i in nd de ex x Transfer Interrupt Index Value Description 1 1023 Transfer Interrup...

Страница 119: ...s Value Description 0 Label buffer has been allocated 1 Label buffer could not be allocated due to less memory A Ai iU UI In nt t3 32 2 p pl l_ _F Fr re ee eM Me em m Size of the free memory availabl...

Страница 120: ...uffer contents may be defined with the Api429CmdTxXferData command The allocated buffer should be released using the Api429CmdTxXferDel command Note This command is not accessible if the transmitter m...

Страница 121: ...Api429CmdReset command is set to 1 A Ai iU UI In nt t8 8 p pa ad dd di in ng g1 1 Reserved 0 A Ai iU UI In nt t1 16 6 i ir r_ _i in nd de ex x Transfer Interrupt Index Value Description 1 1023 Transf...

Страница 122: ...ul l_ _S St ta at tu us s Value Description 0 Label buffer has been allocated 1 Label buffer could not be allocated due to less memory A Ai iU UI In nt t3 32 2 u ul l_ _F Fr re ee eM Me em m Size of t...

Страница 123: ...ified by its transfer identifier on the selected API429 channel Note This command is not accessible if the transmitter mode b_Mode in the Api429CmdTxIni command is set to replay mode I In np pu ut t A...

Страница 124: ...a transfer identified by its transfer identifier I In np pu ut t A Ai iU UI In nt t8 8 b b_ _C Ch hn n Channel Number Value Description 1 32 API429 transmitter channel number A Ai iU UI In nt t8 8 b...

Страница 125: ...de Note This function must be set after setting up the replay and the framing channel I In np pu ut t A Ai iU UI In nt t8 8 b b_ _C Ch hn n Channel Number Value Description 1 32 API429 transmitter cha...

Страница 126: ...a command the pl_XferData will be the label number and the mask for the discrete register Note For NOP transfers pl_XferCnt and pl_XferData will be returned with value 0 Note This command is obsolete...

Страница 127: ...are Library Reference Manual for VME 429 117 Section 5 Transmitter Functions R Re et tu ur rn n V Va al lu ue e Value Constant Description 0 API429_CMD_OK Execution success 1 API429_CMD_ERR Execution...

Страница 128: ...e pl_XferData will be the label number and the mask for the discrete register Note For NOP transfers all output data except pl_XferIx will be returned with value 0 I In np pu ut t A Ai iU UI In nt t8...

Страница 129: ...t 10 Bit 9 Bit 8 HOURS MINUTES Bit 7 Bit 6 Bit 5 Bit 4 Bit 3 Bit 2 Bit 1 Bit 0 MINUTES SECONDS UPD If set to 1 label transfer has been sent can be cleared with function Api429CmdTxXferDataRead A Ai iU...

Страница 130: ...120 Software Library Reference Manual for VME 429 Section 5 Transmitter Functions THIS PAGE IS INTENTIONALLY LEFT BLANK...

Страница 131: ...mdRxIni Initializes Receiver mode Api429RxReadActivity Provides a bit field on which Labels were already received Api429CmdRxLabCon Defines the Labels to be received Api429CmdRxLabDataCon Initializes...

Страница 132: ...mitted will occur for the received data I In np pu ut t A Ai iU UI In nt t8 8 b b_ _C Ch hn n Channel Number Value Description 1 32 API429 receiver channel number A Ai iU UI In nt t8 8 b b_ _C Ch hn n...

Страница 133: ...Value Description 1 32 API429 receiver channel number A Ai iU UI In nt t8 8 b b_ _L La ab be el l Value Description 0 255 Label Number A Ai iU UI In nt t8 8 b b_ _S Sd di i Value Description 0 3 SDI...

Страница 134: ...API429_RX_HALT 0x94 P Pu ur rp po os se e This function stops the receiver and monitor operation on the selected 429 receiver and monitor channel I In np pu ut t A Ai iU UI In nt t8 8 b b_ _C Ch hn n...

Страница 135: ...should be larger than 27 10ms update rate for Receive Mixing Channel If the receiver channel is enabled in mixing mode all SDI and labels will be stored in one buffer I In np pu ut t A Ai iU UI In nt...

Страница 136: ...rary Reference Manual for VME 429 Section 6 Receiver Functions O Ou ut tp pu ut t none R Re et tu ur rn n V Va al lu ue e Value Constant Description 0 API429_CMD_OK Execution success 1 API429_CMD_ERR...

Страница 137: ...elected API429 receiver channel and allocates releases a receive data buffer I In np pu ut t A Ai iU UI In nt t8 8 b b_ _C Ch hn n Channel Number Value Description 1 32 API429 receiver channel number...

Страница 138: ...d de ex x Value Description 1 1023 Buffer Interrupt Index Note Only relevant if the receiver mode b_Mode in the Api429CmdRxIni command is set to normal receive mode 0 A Ai iU UI In nt t1 16 6 w w_ _B...

Страница 139: ...an be used to clear the data buffer after the receiver was stopped I In np pu ut t A Ai iU UI In nt t8 8 b b_ _C Ch hn n Channel Number Value Description 1 32 API429 receiver channel number A Ai iU UI...

Страница 140: ...t t3 32 2 l la ab b_ _d da at ta a Receive buffer entry MSB first consisting of label data and additional data containing the entry error flag AE Note The amount of label data words to write to the re...

Страница 141: ...UI In nt t8 8 b b_ _C Ch hn n Channel Number Value Description 1 32 API429 receiver channel number A Ai iU UI In nt t8 8 b b_ _L La ab be el l Value Description 0 255 Label Number A Ai iU UI In nt t8...

Страница 142: ...r to Label Receive Buffer Data structure api429 h AE Last Label Data Word AE First Label Data Word Bit 31 30 0 typedef struct AiUInt32 lab_data TY_API429_RX_BUF_ENTRY A Ai iU UI In nt t3 32 2 l la ab...

Страница 143: ...ote The transfer counter will be incremented only if px_Cmd lcen in the Api429CmdReset command is set to 1 I In np pu ut t A Ai iU UI In nt t8 8 b b_ _C Ch hn n Channel Number Value Description 1 32 A...

Страница 144: ...if px_Cmd lcen in the Api429CmdReset command will be set to 0 A Ai iU UI In nt t1 16 6 p pw w_ _L La ab bE Er rr r Number of Transfer Errors detected Note This field is cleared whenever the command Ap...

Страница 145: ...annel I In np pu ut t None O Ou ut tp pu ut t T TY Y_ _A AP PI I4 42 29 9_ _R RX X_ _A AC CT TI IV VI IT TY Y p px xA Ac ct ti iv vi it ty y typedef struct AiUInt32 ChannelActivity 32 8 TY_API429_RX_A...

Страница 146: ...ons in the loop pollution mode Note The receiver mode b_Mode in the Api429CmdRxIni command must be set to loop pollution mode 1 to use this function I In np pu ut t A Ai iU UI In nt t8 8 b b_ _C Ch hn...

Страница 147: ...Addition Subtraction Control Value Description 0 Addition 1 Subtraction A Ai iU UI In nt t1 16 6 p pa ad dd di in ng g1 1 Reserved 0 A Ai iU UI In nt t3 32 2 a an nd d_ _m ma as sk k AND Mask Note On...

Страница 148: ...rts the receiver and monitor operation on the selected API429 receiver and monitor channel The receiver and monitor will be started in corresponding mode of the Api429CmdRxIni command and Api429CmdRmI...

Страница 149: ...channel message error count information I In np pu ut t A Ai iU UI In nt t8 8 b b_ _C Ch hn n Channel Number Value Description 1 32 API429 receiver channel number O Ou ut tp pu ut t A Ai iU UI In nt...

Страница 150: ...140 Software Library Reference Manual for VME 429 Section 6 Receiver Functions THIS PAGE IS INTENTIONALLY LEFT BLANK...

Страница 151: ...mdRmCapDef Defines Receiver Monitor Capture Mode Standard or Record Api429CmdRmLabCon Defines Label or Label SDI to capture Api429CmdRmFuncBlkDef Controls Receiver Monitor Label Function Block Api429C...

Страница 152: ...t8 mode AiUInt8 padding1 AiUInt16 tat AiUInt16 reserved AiUInt16 padding2 AiUInt32 rec_filesize TY_API429_RCV_CAP_MODE_CMD A Ai iU UI In nt t8 8 m mo od de e Trigger Capture Mode Value Constant Descri...

Страница 153: ...ecording Note The tat value should not be greater than the monitor stack size Note After Api429CmdReset tat is initialized to the max stack size in entries A Ai iU UI In nt t1 16 6 r re es se er rv ve...

Страница 154: ...ach BIU has its own monitoring buffer For example an AMC429 32R16 board has one global monitoring buffer for channel 1 16 and one for channel 17 32 I In np pu ut t A Ai iU UI In nt t8 8 b b_ _C Ch hn...

Страница 155: ...EED Bit 7 Bit 6 Bit 5 Bit 4 Bit 3 Bit 2 Bit 1 Bit 0 HOURSOFDAY G GA AP P Value Description 1 255 Gap time in ARINC bits B BI IU U BIU on which the data is recorded Value Constant Description 0 API429_...

Страница 156: ...settings done in the command Api429CmdReset S SP PE EE ED D Value Constant Description 0 API429_LO_SPEED Low Speed Data 1 API429_HI_SPEED High Speed Data H HO OU UR RS SO OF FD DA AY Y Hours of the I...

Страница 157: ...receiver channel Function blocks are used on the API429 for comprehensive complex function triggering label filtering and range checking The maximum number of function blocks per channel is 30 I In np...

Страница 158: ...trg_line TY_API429_RCV_FB_CMD A Ai iU UI In nt t8 8 f fb b_ _i id d Function Block ID Value Description 1 30 API429 Function Block Identifier A Ai iU UI In nt t8 8 f fb bi i Value Description 0 Disabl...

Страница 159: ...llc Description 0 Never 1 Not equal 2 Not greater than 3 Not less than Note An upper or lower limit check can be switched off by setting uli to one and ulc to 00bin A Ai iU UI In nt t8 8 f fe e Filter...

Страница 160: ...reaches zero the function block operation is TRUE The pre qualify counter should be initialized to 1 A Ai iU UI In nt t1 16 6 p pr re e_ _r re el l Pre Qualify Counter Register Reinitialization This...

Страница 161: ...0xB7 P Pu ur rp po os se e This function suspends the monitor operation on the selected API429 monitor This function shall only be used after the Api429CmdRxStart command I In np pu ut t A Ai iU UI In...

Страница 162: ...U UI In nt t8 8 b b_ _M Mo od de e Monitor Mode Value Constant Description 0 API429_MON_MODE_LOC Local Monitoring Individual receive buffers are used for the receive channels 1 API429_MON_MODE_GLB Glo...

Страница 163: ...b_ _C Ch hn n Channel Number Value Description 1 32 API429 receiver channel number A Ai iU UI In nt t8 8 b b_ _L La ab be el l Value Description 0 255 Label Number A Ai iU UI In nt t8 8 b b_ _S Sd di...

Страница 164: ...nction Api429CmdRmCapDef If available the received monitor data recording data will be copied from the Receiver Monitor Buffer to a buffer in the Shared Memory RAM area of the API429 board Finally the...

Страница 165: ...have been copied from the Global RAM into the Shared RAM area of the API429 board A Ai iU UI In nt t3 32 2 s si iz ze e Amount of 32 bit Receiver Monitor buffer entries that have been be copied from...

Страница 166: ...n restarts the monitor operation on the selected API429 monitor channel after the monitor operation is suspended via the Api429CmdRmHalt command This function shall only be used after the Api429CmdRxS...

Страница 167: ...ecution Status Value Constant Description 1 API429_HALT RM halted 2 API429_BUSY RM busy A Ai iU UI In nt t1 16 6 p pw w_ _M Ms sw w Monitor Status Word Bit 15 Bit 14 Bit 13 Bit 12 Bit 11 Bit 10 Bit 9...

Страница 168: ...monitoring BIU must be read separately via the global channel number of the BIU global buffer for BIU I In np pu ut t A Ai iU UI In nt t8 8 b b_ _C Ch hn n Channel Number Value Description 1 32 API429...

Страница 169: ...m_ _t ta ag g If entry found 32 bit Timetag Bit 31 Bit 30 Bit 29 Bit 28 Bit 27 Bit 26 Bit 25 Bit 24 MINUTES SECONDS Bit 23 Bit 22 Bit 21 Bit 20 Bit 19 Bit 18 Bit 17 Bit 16 SECONDS MICROSECONDS Bit 15...

Страница 170: ...as received usage of monitor merge mode This Value has a range from 1 to 16 for each BIU If you have a board with more than on BIU you must extend this value with the BIU parameter G GS SM M Global Sp...

Страница 171: ...ing from stack entry pointer with offset are defined in the in parameters I In np pu ut t A Ai iU UI In nt t8 8 b b_ _C Ch hn n Channel Number Value Description 1 32 API429 receiver channel number A A...

Страница 172: ...n error 5 Gap error A Ai iU UI In nt t3 32 2 l l_ _E Et tm m Entry mask value for data entries most significant byte first It defines which bits are relevant mask bit 1 for label data search operation...

Страница 173: ...18 Bit 17 Bit 16 BIU ETYPE UDF Bit 15 Bit 14 Bit 13 Bit 12 Bit 11 Bit 10 Bit 9 Bit 8 CHN_ID GSM LSS SPEED Bit 7 Bit 6 Bit 5 Bit 4 Bit 3 Bit 2 Bit 1 Bit 0 HOURSOFDAY G GA AP P Value Description 1 255 G...

Страница 174: ...tings done in the command Api429CmdReset For further descriptions see page 50 S SP PE EE ED D Value Constant Description 0 API429_LO_SPEED Low Speed Data 1 API429_HI_SPEED High Speed Data H HO OU UR R...

Страница 175: ...the selected API429 receiver channel I In np pu ut t A Ai iU UI In nt t8 8 b b_ _C Ch hn n Channel Number Value Description 1 32 API429 receiver channel number O Ou ut tp pu ut t A Ai iU UI In nt t3...

Страница 176: ...channel in framing mode T TY Y_ _A AP PI I4 42 29 9_ _R RC CV V_ _T TR RG G_ _M MO OD DE E_ _C CM MD D p px x_ _T Tr rg gM Mo od de e Pointer to Trigger Mode Data structure api429 h typedef struct Ai...

Страница 177: ...nt 1 Enable strobe external trigger output on any trigger event A Ai iU UI In nt t8 8 e ex xt to o External Trigger Output Select Value Description 0 3 External Trigger Output Select Note If using a b...

Страница 178: ...G_ _P PA AR R_ _C CM MD D p px x_ _P Pa ar ra a Pointer to Trigger Parameter Data structure api429 h typedef struct AiUInt8 start_pat AiUInt8 start_mask AiUInt8 stop_pat AiUInt8 stop_mask TY_API429_TR...

Страница 179: ...erence Manual for VME 429 169 Section 7 Receiver Monitor Functions O Ou ut tp pu ut t none R Re et tu ur rn n V Va al lu ue e Value Constant Description 0 API429_CMD_OK Execution success 1 API429_CMD_...

Страница 180: ...command and the Api429CmdRmTrgStartDef command must be different I In np pu ut t A Ai iU UI In nt t8 8 b b_ _C Ch hn n Channel Number Value Description 1 32 API429 receiver channel number A Ai iU UI...

Страница 181: ...unction Mode Value Description 0 Equal 1 Not equal 2 Less than 3 Greater than A Ai iU UI In nt t1 16 6 p pa ad dd di in ng g1 1 Reserved 0 A Ai iU UI In nt t3 32 2 m ma as sk k Monitor Trigger Mask A...

Страница 182: ...command and the Api429CmdRmTrgStartDef command must be different I In np pu ut t A Ai iU UI In nt t8 8 b b_ _C Ch hn n Channel Number Value Description 1 32 API429 receiver channel number A Ai iU UI...

Страница 183: ...nction Mode Value Description 0 Equal 1 Not equal 2 Less than 3 Greater than A Ai iU UI In nt t1 16 6 p pa ad dd di in ng g1 1 Reserved 0 A Ai iU UI In nt t3 32 2 m ma as sk k Monitor Trigger Mask A A...

Страница 184: ...174 Software Library Reference Manual for VME 429 Section 7 Receiver Monitor Functions THIS PAGE IS INTENTIONALLY LEFT BLANK...

Страница 185: ...tions are utilized to initialize status the replay function and copy replay data These functions can only be applied to API429 channels which are configured as transmitter Table 8 I Replay Function De...

Страница 186: ..._C Ch hn n Channel Number Value Description 1 32 API429 transmitter channel number A Ai iU UI In nt t8 8 u uc c_ _C Cl lr rE En nt tr ry yB Bi it t Clear Entry Bit Value Description 0 Do not modify pr...

Страница 187: ...formation stored in the input buffer A Ai iU UI In nt t8 8 u uc c_ _R Re ep pI In nt tM Mo od de e Replay Interrupt Control Value Description 0 No interrupt 1 Assert interrupt if half buffer is transm...

Страница 188: ...he file for this label ul_Min ul_Msec Actual IRIG Time A Ai iU UI In nt t3 32 2 u ul l_ _M MS Se ec c Absolute Microsecond Offset Value Description 0 Not used 0 Specify the offset between the recorded...

Страница 189: ...rary function Api429CmdReplayIni I In np pu ut t A Ai iU UI In nt t8 8 u uc c_ _C Ch hn n Channel Number Value Description 1 32 API429 transmitter channel number O Ou ut tp pu ut t T TY Y_ _A AP PI I4...

Страница 190: ...U UI In nt t3 32 2 u ul l_ _E En nt tr ry yC Cn nt t Initial value calculated from the file size refer to Api429CmdReplayIni parameter ul_FileSize and decremented when replay is started A Ai iU UI In...

Страница 191: ...pi429 h typedef struct AiUInt8 uc_Status AiUInt8 uc_Padding1 AiUInt16 uw_Padding2 AiUInt32 ul_RpiCnt AiUInt32 ul_EntryCnt AiUInt32 ul_StartAddr AiUInt32 ul_Size TY_API429_REP_STATUS A Ai iU UI In nt t...

Страница 192: ...of the AIM board The value of the start address may be read with the function Api429CmdReplayStatus A Ai iU UI In nt t3 32 2 u ul l_ _S Si iz ze e Amount of bytes to be copied The value of the size o...

Страница 193: ...constant discrete Two sets of scenarios can be defined which are stored on the API429 board to allow a scenario switching caused by a special event on a receive channel The current inactive scenario...

Страница 194: ...emory areas on the API429 Note After the Scenario Execution Time the Scenario will stay on the last transmitted value Note This command is not supported on APM boards I In np pu ut t A Ai iU UI In nt...

Страница 195: ...all transmit channels 1 32 API429 transmitter channel number A Ai iU UI In nt t8 8 b b_ _S Sc ce e Scenario ID Value Description 1 2 API429 scenario identifier A Ai iU UI In nt t8 8 b b_ _M Mo od de...

Страница 196: ...rary Reference Manual for VME 429 Section 9 Scenario Functions O Ou ut tp pu ut t none R Re et tu ur rn n V Va al lu ue e Value Constant Description 0 API429_CMD_OK Execution success 1 API429_CMD_ERR...

Страница 197: ...ue Description 1 32 API429 transmitter channel number A Ai iU UI In nt t8 8 b b_ _S Sc ce e Scenario ID Value Description 1 2 API429 scenario identifier A Ai iU UI In nt t8 8 b b_ _X Xf fe er rI Id d...

Страница 198: ...data T TY Y_ _A AP PI I4 42 29 9_ _S SC CE E_ _X XF FE ER R_ _F FI IE EL LD D f fl ld d M MA AX X_ _A AP PI I4 42 29 9_ _S SC CE E_ _F FI IE EL LD DS S typedef struct AiUInt8 type AiUInt8 lsb AiUInt8...

Страница 199: ...time offset in ms 0 4 API429_FLD_FNC_ RAMPS Single Ramp f t C a t t0 0 t T fpar1 C offset fpar2 a scale fpar3 T time in ms after ramp is suspended stay on last value fpar4 t0 time offset in ms 0 5 AP...

Страница 200: ...rary Reference Manual for VME 429 Section 9 Scenario Functions O Ou ut tp pu ut t none R Re et tu ur rn n V Va al lu ue e Value Constant Description 0 API429_CMD_OK Execution success 1 API429_CMD_ERR...

Страница 201: ...R SCENARIO DATA commands Api429CmdSceCtl have been called for the given channel Note This command is not supported on APM boards I In np pu ut t A Ai iU UI In nt t8 8 b b_ _C Ch hn n Channel Number Va...

Страница 202: ...tion 1 32 API429 transmitter channel number O Ou ut tp pu ut t A Ai iU UI In nt t8 8 p pb b_ _S Sc co o Scenario Overflow Value Description 0 No overflow occurred scenario data ok 1 Scenario overflow...

Страница 203: ...761 45 22 90 866 AIM A429 44 1494 44 68 44 10 1 Error Reporting Design Error messages can be generated by various levels of the API S W Library interfaces This section will address the error messages...

Страница 204: ...in its associated section Generally errors reported at point 1 are due to out of range function call parameters When the API S W Library function software detects an error at this point it will retur...

Страница 205: ...1 3 occurred when ApiCmdBCFrameDef function call contained a parameter minor frame ID out of range Figure 10 1 3 Example Error in function Error Message Once this type of error message is generated th...

Страница 206: ..._ERR_PARAM9_IS_NULL Parameter 9 pointer is null 0x0025 API_ERR_PARAM10_IS_NULL Parameter 10 pointer is null 0x0026 API_ERR_PARAM11_IS_NULL Parameter 11 pointer is null 0x0027 API_ERR_PARAM12_IS_NULL P...

Страница 207: ...he function call See Table 10 2 I c is the error returned by the Target software d is the error returned to the module address should be the same as c If the returned acknowledgement status is not wha...

Страница 208: ...ssage CMD xxxxxxxxh ACK yyyyh Where a Error message is 1 General I O Error 2 ACK returned 3 ACK2 returned 4 NAK returned 5 Acknowledge Error 6 Target Communication closed ERROR NO a for unknown error...

Страница 209: ...own in Figure 10 1 2 will occur with function name equal to the calling API S W Library function Since the error code is reserved for the Target S W errors it will be interpreted as unknown by the API...

Страница 210: ...the Api429 h header file Table 10 2 I Driver Command Codes vs API Function Calls Driver Command Codes Function Call Library Administration App C System App D Memory App E Transmitter App F Receiver A...

Страница 211: ...9CmdTxXferDefEx 0x74 Api429CmdTxXferData 0x75 Api429CmdTxMinFrameInst 0x76 Api429CmdTxMajFrameInst 0x77 Api429CmdTxXferDel 0x78 Api429CmdTxMinFrmDel 0x79 Api429CmdTxMajFrmDel 0x7A Api429CmdTxStart 0x7...

Страница 212: ...MixChannel 0xB0 Api429CmdRmIni 0xB2 Api429CmdRmTrgDef 0xB3 Api429CmdRmCapDef 0xB4 Api429CmdRmLabCon 0xB5 Api429CmdRmFuncBlkDef 0xB6 Api429CmdRmStart 0xB7 Api429CmdRmHalt 0xB8 Api429CmdRmStatusRead 0xB...

Страница 213: ...Binary Coded Decimal BH Buffer Header BIP Bus Interface Processor BIT Built in Test BIU Bus Interface Unit bpos bit position BSP Board Support Package CMD Command CPCI Compact PCI CTP capture start tr...

Страница 214: ...rsonal Computer Advanced Technology PCI Peripheral Component Interconnect PMC Peripheral Component Interconnect Mezzanine Card PROM Programmable Read Only Memory PSC PCI and System Controller RAM Rand...

Страница 215: ...out what to do next Little Endian a system of memory addressing in which numbers that occupy more than one byte in memory are stored little end first with the lowest 8 bits at the lowest address Prot...

Страница 216: ...206 Software Library Reference Manual for VME 429 Section 11 Notes THIS PAGE IS INTENTIONALLY LEFT BLANK...

Страница 217: ...Software Library Reference Manual for VME 429 207 Appendix A Document Software History APPENDIX A DOCUMENT SOFTWARE HISTORY...

Страница 218: ...208 Software Library Reference Manual for VME 429 Appendix A Document Software History THIS PAGE IS INTENTIONALLY LEFT BLANK...

Страница 219: ...each version of the API S W Library This information is provided in two forms a Table A I Summary of Changes for each Version Update This table includes a definition of changes for each s w library f...

Страница 220: ...General No changes in this Manual However the VME Generic Reference Manual has been updated 5 4x Revision B General Restructured document from Appendices to Sections Function call parameter descriptio...

Страница 221: ...r pl_Addr Api429CmdRxLabCon Extended description of parameter b_Sdi Api429CmdRxLabDataRead Extended description of parameter lab_data Api429CmdSceDef Api429CmdSceClr Api429CmdSceIni Api429CmdSceCtl Ap...

Страница 222: ...red to description to appropriate Ai429VME command Ai429VMEModuleListBuild Ai429VMEModuleListBuildEx Ai429VMEMemoryMap Ai429VMEInitInterrupt Ai429VMEFreeModuleList Added 6 0x Revision A AiVmeExamineSl...

Страница 223: ...MemData Corrected values for parameter memtype 7 0x Revision A Api429CmdBite Added Note Api429CmdIni Corrected description of parameter px_IniPar board_type and px_IniPar board_config Api429ReadBspVer...

Страница 224: ...dynamically allocated Api429CmdTxMinFrameInst Changed parameters b_FrmId and b_XferCnt from AiUint8 to AiUInt32 and parameter pb_Xfers from AiUInt8 to AiUInt32 Changed parameter range of ul_XferCnt fr...

Страница 225: ...429Init Api429Open R D Api429Close R Avi429Open New Avi429Close New Api429InstIntHandler New Api429DelIntHandler New Api429GetTgEmul Api429SetTgEmul Api429SetDllDbgLevel New Api429GetTcomStatus R Api4...

Страница 226: ...a S Sc ce en na ar ri io o F Fu un nc ct ti io on ns s Api429CmdSceDef D D Api429CmdSceClr D Api429CmdSceIni D Api429CmdSceCtl D Api429CmdSceRead D T Tr ra an ns sm mi it tt te er r F Fu un nc ct ti i...

Страница 227: ...9CmdRxHalt Api429CmdRxStatusRead Api429CmdRxLabRead Api429CmdRxLabDataRead D Api429CmdRxGetBufAddress D Api429RxReadActivity New Api429CmdRxEnaMixChannel R Re ec ce ei iv ve er r M Mo on ni it to or r...

Страница 228: ...er New Ai429VmeModuleOpen R New Avi429DelVmeInt R Avi429InitVmeInt R Avi429ModuleCheck R Avi429VMEBoardIni R VMEuserInterruptFunction R D D AiVMEModuleListBuild R D D AiVMEModuleListBuildEx R D D AiVM...

Отзывы: