IP-708 Driver
Documentation
FOCUS Software Engineering

Main Page   Modules   Data Structures   File List   Data Fields   Globals   Related Pages  

ip708.c File Reference

Library for Condor Engineering ARINC 708 IP-708 modules. More...

Include dependency graph for ip708.c:

Include dependency graph

Driver Initialization and Clean-up 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.


Transmit Functions

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.

bool ip708_txIntPending (Ip708Hdl ipModuleHdl)
 Check if a transmit interrupt is pending and clears the interrupt.

void ip708_txIntEnable (Ip708Hdl ipModuleHdl)
 Enables transmit interrupt.

void ip708_txIntDisable (Ip708Hdl ipModuleHdl)
 Disables transmit interrupt.


Receive Functions

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.

bool ip708_rxIntPending (Ip708Hdl ipModuleHdl)
 Check if a receive interrupt is pending and clears the interrupt.

void ip708_rxIntEnable (Ip708Hdl ipModuleHdl)
 Enables receive interrupt.

void ip708_rxIntDisable (Ip708Hdl ipModuleHdl)
 Disables receive interrupt.


Channel configuration Functions

void ip708_setConfig (Ip708Hdl ipModuleHdl, int option, int value)
 Configures channels.


Test and Compare Functions

int 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.


Detailed Description

Library for Condor Engineering ARINC 708 IP-708 modules.