What are the error codes in the IP-AVIONICS API?

The function ar_get_error() tranlates the following error codes. Look at the file IPAV_API.H for the current list of possible error codes and their explanations. The error strings are defined in AR_ERROR.H.

ErrorCodeDescription
ARS_FAILURE-1
ARS_NODATA0No data in receive buffer
ARS_NORMAL1Function normal/successful completion
ARS_GOTDATA4Receiver returned data
ARS_INVHARCMD1002Invalid configuration command
ARS_INVHARVAL1003Invalid configuration value
ARS_XMITOVRFLO1004Tx buffer full, no data inserted
ARS_INVBOARD1005Invalid board argument
ARS_BADLOAD1007Could not successfully initalize the board
ARS_MEMWRERR1013Dual-Port memory write/read-back error
ARS_INVARG1019Invalid argument to function
ARS_DRIVERFAIL1021Device driver load failed
ARS_WINRTFAIL1022WinRT Device Driver Error
ARS_CHAN_TIMEOUT1023Time out waiting for receive data
ARS_NO_HW_SUPRT1024Function not supported by hardware
ARS_WRAP_DATA_FAIL1031Wrap test failed
ARS_WRAP_RATE_FAIL1032Wrap data rate failed
ARS_SHORT_DATA_FRAME1033Incomplete ARINC-708 data frame
ARS_LONG_DATA_FRAME1034Too much data in ARINC-708 frame

File I/O and transaction error codes

ErrorCodeDescription
ARS_INVVERS2001
ARS_TIMEOUT2002
ARS_INVFILE2003
ARS_INVCOMMVERS2004
ARS_FILE_FAIL2005
ARS_INV_CHANNEL2006
ARS_NCTS2007
ARS_BUSY2008
ARS_FILETOOBIG2009
ARS_NO_RECVR_RESP2010
ARS_SEQUENCE_ERROR2011
ARS_WRITE_BUFF_OVERFL2012
ARS_UNEXPECTED_WORD2013
ARS_INVALID_CASE2014
ARS_DUPLICATE_LDU2015
ARS_GOT_ALO2016
ARS_GOT_TEST2017
ARS_PATTERN_FAIL2018
ARS_MEM_ALLOC_ERR2019
ARS_NOT_OPENED2020
ARS_EXCESS_NAK2021
ARS_EXCESS_SYN2022
ARS_NAK2023
ARS_SYN2024
ARS_EOF2025End Of File encountered