GLAST/LAT > DAQ and FSW > FSW > Doxygen Index > LIM / V1-20-0

Constituent: lim     Tag: rad750


Interface   Data Structures   File List   Data Fields   Globals  

LIM_lci.c File Reference

Handle LIM interactions with the LCI task. More...

#include "string.h"
#include "ITC/ITC_pubdefs.h"
#include "LCI/LCI_cmddefs.h"
#include "LIM/LIM_msgs.h"
#include "LIM/LIM_pubdefs.h"
#include "LIM_action.h"
#include "LIM_lci.h"
#include "LIM_other_task.h"
#include "LIM_pkt_send.h"
#include "LIM_task.h"

Include dependency graph for LIM_lci.c:


Functions

unsigned int LIM_lci_new (LIM_Lci **object_pp, LIM_Task *task_p, LIM_Action *action_p, LIM_Pkt_Send *pkt_start_p, LIM_Pkt_Send *pkt_abort_p)
 Create and initialize a new LCI interface object.
unsigned int LIM_lci_delete (LIM_Lci *object_p)
 Shutdown and delete an LCI interface object.
LIM_Other_State LIM_lci_get_state (LIM_Lci *object_p)
 Return the current state of the LCI task.
int LIM_lci_abort_fcode (void)
 Return the function code of the Cal-Abort command.
int LIM_lci_start_fcode (void)
 Return the function code of the Cal-Start command.
unsigned int LIM_lci_fwd_abort (LIM_Lci *object_p, LIM_Pkt_Send *pkt_send_p, const ITC_QueueItem *qitem_p)
 Forward an Abort command to the LCI task.
unsigned int LIM_lci_fwd_other (LIM_Lci *object_p, LIM_Pkt_Send *pkt_send_p, const ITC_QueueItem *qitem_p)
 Forward an 'other' command to the LCI task.
unsigned int LIM_lci_handle_bulk (LIM_Lci *object_p, const ITC_QueueItem *qitem_p)
 Handle a message on the BULK queue.
unsigned int LIM_lci_handle_complete (LIM_Lci *object_p, const ITC_QueueItem *qitem_p)
 Handle a Complete message from the LCI task.
unsigned int LIM_lci_send_abort (LIM_Lci *object_p)
 Send an Abort command to the LCI task.
unsigned int LIM_lci_send_start (LIM_Lci *object_p, const unsigned char *pkt_p, unsigned int pkt_bytes)
 Send a Start command to the LCI task.

Detailed Description

Handle LIM interactions with the LCI task.

**  CVS $Id: LIM_lci.c,v 1.8 2007/02/13 21:15:41 dmay Exp $
**  

These are functions related to the interface with the LCI task.


Function Documentation

int LIM_lci_abort_fcode void   ) 
 

Return the function code of the Cal-Abort command.

Returns:
Cal-Abort command function code.

unsigned int LIM_lci_delete LIM_Lci object_p  ) 
 

Shutdown and delete an LCI interface object.

Parameters:
object_p Pointer to object.
Returns:
MSG code.

unsigned int LIM_lci_fwd_abort LIM_Lci object_p,
LIM_Pkt_Send pkt_send_p,
const ITC_QueueItem *  qitem_p
 

Forward an Abort command to the LCI task.

Parameters:
object_p Pointer to LCI interface object.
pkt_send_p Pointer to packet sending object for the command.
qitem_p Pointer to queue item containing the command.
Returns:
MSG code.

unsigned int LIM_lci_fwd_other LIM_Lci object_p,
LIM_Pkt_Send pkt_send_p,
const ITC_QueueItem *  qitem_p
 

Forward an 'other' command to the LCI task.

Parameters:
object_p Pointer to LCI interface object.
pkt_send_p Pointer to packet sending object for the command.
qitem_p Pointer to queue item containing the command.
Returns:
MSG code.

LIM_Other_State LIM_lci_get_state LIM_Lci object_p  ) 
 

Return the current state of the LCI task.

Parameters:
object_p Pointer to LCI interface object.
Returns:
Current state of the LCI task.

unsigned int LIM_lci_handle_bulk LIM_Lci object_p,
const ITC_QueueItem *  qitem_p
 

Handle a message on the BULK queue.

Parameters:
object_p Pointer to LCI interface object.
qitem_p Pointer to queue item containing the message.
Returns:
MSG code.

unsigned int LIM_lci_handle_complete LIM_Lci object_p,
const ITC_QueueItem *  qitem_p
 

Handle a Complete message from the LCI task.

Parameters:
object_p Pointer to LCI interface object.
qitem_p Pointer to queue item containing the message.
Returns:
MSG code.

unsigned int LIM_lci_new LIM_Lci **  object_pp,
LIM_Task task_p,
LIM_Action action_p,
LIM_Pkt_Send pkt_start_p,
LIM_Pkt_Send pkt_abort_p
 

Create and initialize a new LCI interface object.

Parameters:
object_pp Location to return pointer to new object.
task_p Pointer to a task object.
action_p Pointer to an action reporting object.
pkt_start_p Pointer to Start command packet sending object.
pkt_abort_p Pointer to Abort command packet sending object.
Returns:
MSG code.

unsigned int LIM_lci_send_abort LIM_Lci object_p  ) 
 

Send an Abort command to the LCI task.

Parameters:
object_p Pointer to LCI interface object.
Returns:
MSG code.

unsigned int LIM_lci_send_start LIM_Lci object_p,
const unsigned char *  pkt_p,
unsigned int  pkt_bytes
 

Send a Start command to the LCI task.

Parameters:
object_p Pointer to LCI interface object.
pkt_p Pointer to Start command packet.
pkt_bytes Size, in bytes, of Start command packet.
Returns:
MSG code.

int LIM_lci_start_fcode void   ) 
 

Return the function code of the Cal-Start command.

Returns:
Cal-Start command function code.


Generated on Thu Oct 30 01:44:45 2008 by  doxygen 1.4.4