GLAST/LAT > DAQ and FSW > FSW > Doxygen Index > CTDB / V5-2-2

Constituent: sumt_bc_sib     Tag: rad750


Interface   Data Structures   File List   Data Fields   Globals  

SUMT_bc_private.h File Reference

Private definitions for Summit 1553 bus controller device driver. More...

#include "vxWorks.h"
#include "CTDB/SUMT_bc.h"
#include "PBS/FORK.h"
#include "PBS/FPA.h"
#include "PBS/WUT.h"
#include "MSG/MSG_pubdefs.h"
#include "SUMT_private.h"

Include dependency graph for SUMT_bc_private.h:

Include dependency graph

This graph shows which files directly or indirectly include this file:

Included by dependency graph

Data Structures

struct  _SUMT_BC

Defines

#define SUMT_BC_LOG_SIZE   64
#define SUMT_BC_N_INTR   64
#define SUMT_BC_FRAME_PERIOD   40000000

Typedefs

typedef enum _SUMT_BC_Event SUMT_BC_Event

Enumerations

enum  _SUMT_BC_Event {
  SUMT_BC_EVENT_INIT,
  SUMT_BC_EVENT_FRAME,
  SUMT_BC_EVENT_EXIT
}

Functions

void SUMT_bcIntr (SUMT_BC *bc)
 Interrupt handler for driver.

void SUMT_bcMsg (SUMT_BC *bc)
 Processes a 1553 data message event.

WUT_cb_status SUMT_bcFrame (SUMT_BC *bc, WUT_tmr *timer)
 Start a new bus frame.


Detailed Description

Private definitions for Summit 1553 bus controller device driver.

Author:
D.L. Wood

Define Documentation

#define SUMT_BC_FRAME_PERIOD   40000000
 

The period in nanoseconds of the bus controller frame timer.

#define SUMT_BC_LOG_SIZE   64
 

The size in bytes of the Summit BC event log.

#define SUMT_BC_N_INTR   64
 

The maximum number of interrupt event messages stored in the service queue.


Typedef Documentation

SUMT_BC_Event
 

The typedef for _SUMT_BC_Event.


Enumeration Type Documentation

enum _SUMT_BC_Event
 

Codes indicating the work the RT service task needs to do.

Enumeration values:
SUMT_BC_EVENT_INIT  Initialization request for service task.
SUMT_BC_EVENT_FRAME  Last bus frame complete.
SUMT_BC_EVENT_EXIT  The user is requesting shutdown.


Function Documentation

WUT_cb_status SUMT_bcFrame SUMT_BC bc,
WUT_tmr *  timer
 

Start a new bus frame.

Starts the bus controller processing bus commands to send to the remote terminal. A one second frame timer is also started, so that once the current list of bus commands is processed, the BCRTM device is restarted the next second with the same command list.

Parameters:
bc A device descriptor.
timer The WUT handle for the frame timer.
Returns:
WUT_K_STATE_CHANGE_YES.

Here is the call graph for this function:

void SUMT_bcIntr SUMT_BC bc  ) 
 

Interrupt handler for driver.

Handles Summit bus controller device interrupts. A descriptor is allocated from the interrupt pool. The internal status register as well as the contents of the event log in shared memory are saved to the interrupt descriptor. The descriptor is placed on a queue to be handled by SUMT_bcTask() at a later time.

Parameters:
bc A device descriptor.

Here is the call graph for this function:

void SUMT_bcMsg SUMT_BC bc  ) 
 

Processes a 1553 data message event.

Responds to a Summit device interrupt indicating that a 1553 frame of commands has completed. Any work to prepare commands for the next frame is completed, and then the data messages from the current frame are serviced.

Parameters:
bc A device descriptor.

Here is the call graph for this function:


Generated on Thu May 5 21:56:29 2005 by doxygen 1.3.3