|
IP-708 Driver Documentation |
![]() |
Include dependency graph for ip708.h:

Channel Configuration Options | |
| #define | CFG_BUS_SELECT 0 |
| #define | EXT_XMITA_RECVB 1 |
| #define | EXT_XMITB_RECVA 2 |
| #define | INTERNAL 3 |
| #define | CFG_XMIT_GAP 10 |
| #define | TX_GAP_0 0x0 |
| #define | TX_GAP_16 0x1 |
| #define | TX_GAP_32 0x2 |
| #define | TX_GAP_48 0x3 |
| #define | TX_GAP_64 0x4 |
| #define | TX_GAP_80 0x5 |
| #define | TX_GAP_96 0x6 |
| #define | TX_GAP_112 0x7 |
Defines | |
| #define | WORDS_PER_FRAME 107 |
| Number of 16-bit words in an ARINC 708 freame. | |
Typedefs | |
| typedef Ip708Descriptor * | Ip708Hdl |
| Handle for accessing the IP-708 module. | |
Functions | |
| Ip708Hdl | ip708_open (IpCarrierHdl ipCarrierHdl, int ipSlotNo, void(*rxIntHandlerFunc)(), void(*txIntHandlerFunc)()) |
| Opens access to a Condor IP-708 module. | |
| void | ip708_close (Ip708Hdl ipModuleHdl) |
| Closes access to the IP module and releases associated resources. | |
| uint16_t | ip708_getStatus (Ip708Hdl ipModuleHdl) |
| Return the contents of the IP-708 status register. | |
| void | ip708_putFrame (Ip708Hdl ipModuleHdl, uint16_t *frameBufPtr) |
| Puts an ARINC 708 frame to the transmit buffer. | |
| void | ip708_enableTx (Ip708Hdl ipModuleHdl, bool enabled) |
| Enables or disables the transmitter. | |
| int | ip708_getTxFrameCnt (Ip708Hdl ipModuleHdl) |
| Return the current number of ARINC 708 frames contained in the transmit buffer. | |
| void | ip708_resetTx (Ip708Hdl ipModuleHdl) |
| Reset the transmitter. | |
| void | ip708_txIntEnable (Ip708Hdl ipModuleHdl) |
| Enables transmit interrupt. | |
| void | ip708_txIntDisable (Ip708Hdl ipModuleHdl) |
| Disables transmit interrupt. | |
| bool | ip708_txIntPending (Ip708Hdl ipModuleHdl) |
| Check if a transmit interrupt is pending and clears the interrupt. | |
| int | ip708_getFrame (Ip708Hdl ipModuleHdl, uint16_t *frameBufPtr) |
| Reads an ARINC 708 frame from the receive buffer. | |
| void | ip708_enableRx (Ip708Hdl ipModuleHdl, bool enabled) |
| Enables or disables the receiver. | |
| int | ip708_getRxFrameCnt (Ip708Hdl ipModuleHdl) |
| Return the current number of frames contained in the receive buffer. | |
| void | ip708_resetRx (Ip708Hdl ipModuleHdl) |
| Reset the IP-708 receiver. | |
| void | ip708_rxIntEnable (Ip708Hdl ipModuleHdl) |
| Enables receive interrupt. | |
| void | ip708_rxIntDisable (Ip708Hdl ipModuleHdl) |
| Disables receive interrupt. | |
| bool | ip708_rxIntPending (Ip708Hdl ipModuleHdl) |
| Check if a receive interrupt is pending and clears the interrupt. | |
| void | ip708_setConfig (Ip708Hdl ipModuleHdl, int option, int value) |
| Configures channels. | |
| bool | ip708_framesDiff (uint16_t *frame1Ptr, uint16_t *frame2Ptr) |
| Compare two ARINC 708 data frames. | |
| void | ip708_makeFrame (uint16_t frameBase, uint16_t *frameBufPtr) |
| Create test frames. | |
| bool | ip708_testRam (Ip708Hdl ipModuleHdl) |
| RAM test of the IP-708 RAM. | |
|
|
Handle for accessing the IP-708 module. The handle is returned by the open function. |
|
||||||||||||||||||||
|
Opens access to a Condor IP-708 module.
|
|
|
Closes access to the IP module and releases associated resources.
|
|
|
Return the contents of the IP-708 status register.
|
|
||||||||||||
|
Puts an ARINC 708 frame to the transmit buffer. The first four data words correspond to the 64-bit control word defined in the ARINC 708 protocol. The following 1536 bits are partitioned into 15-bit words representing 5 range bins (3 bit data portions) per word.
|
|
||||||||||||
|
Enables or disables the transmitter.
|
|
|
Return the current number of ARINC 708 frames contained in the transmit buffer.
|
|
|
Reset the transmitter.
|
|
|
Enables transmit interrupt. Transmit interrupts must be cleared by the interrupt handler (ISR) using the following call ip708_writeCtrlReg(ipModuleHdl, RCTRL_TXICLR, true) or using the ip708_txIntPending(ipModuleHdl) function.
|
|
|
Disables transmit interrupt.
|
|
|
Check if a transmit interrupt is pending and clears the interrupt.
|
|
||||||||||||
|
Reads an ARINC 708 frame from the receive buffer. The first four data words correspond to the 64-bit control word defined in the ARINC 708 protocol. The following 1536 bits are partitioned into 15-bit words representing 5 range bins (3 bit data portions) per word. The last data word of a frame contains two error status bits (the 2 MSBs). If either of these are set an error has occured.
|
|
||||||||||||
|
Enables or disables the receiver.
|
|
|
Return the current number of frames contained in the receive buffer.
|
|
|
Reset the IP-708 receiver.
|
|
|
Enables receive interrupt. Receive interrupts must be cleared by the interrupt handler (ISR) using the following call ip708_writeCtrlReg(ipModuleHdl, RCTRL_RXICLR, true) or using the ip708_rxIntPending(ipModuleHdl) function.
|
|
|
Disables receive interrupt.
|
|
|
Check if a receive interrupt is pending and clears the interrupt.
|
|
||||||||||||||||
|
Configures channels.
|
|
||||||||||||
|
Compare two ARINC 708 data frames.
|
|
||||||||||||
|
Create test frames.
|
|
|
RAM test of the IP-708 RAM.
|
|
Developed by FOCUS Software Engineering Pty Ltd, Australia.
<www.focus-sw.com> Last updated: 28 Apr 2003 |