GLAST/LAT > DAQ and FSW > FSW > Doxygen Index > PBC / V4-12-1
Constituent: pbc     Tag: mv2304
#include <string.h>
#include "CDM/CDM_pubdefs.h"
#include "ITC/ITC_pubdefs.h"
#include "LCBD/LCBD.h"
#include "MSG/MSG_pubdefs.h"
#include "PBS/INT.ih"
#include "PBS/MBA.h"
#include "PBS/RW.ih"
#include "PBC/PBC_cmdxtrn.h"
#include "PBC/PBC_msgs.h"
#include "PBC/PBC_pubdefs.h"
#include "PBC_DB/PBC_DB_schema.h"
#include "PBC_control.h"
#include "PBC_tlm.h"
Include dependency graph for PBC_control.c:
Defines | |
#define | INT_FAKE_OK |
Acknowledges that we realize interrupts can't be disabled on host machines. | |
Functions | |
static unsigned int | pbc_pool_init (FPA_fcb **fcb_pp, void **buf_pp, int *in_use_p, unsigned int num_pkt, unsigned int pkt_bytes) |
Initialize an FPA pool. | |
static void | pbc_pool_free (ITC_QueueItem *qitem_p, unsigned int status, void *parm_0, void *parm_1, void *parm_2, unsigned int tx) |
Free a packet from an FPA pool. | |
static void * | pbc_pool_alloc (void *prm, unsigned int size, ITC_cb_Completion **free_cb, void **cb_parm_0, void **cb_parm_1, void **cb_parm_2) |
Allocate a packet from an FPA pool. | |
static unsigned int | pbc_pool_release (FPA_fcb **fcb_pp, void **buf_pp, int *in_use_p) |
Release the FPA pool memory. | |
static unsigned int | pbc_create_control_block (void) |
Allocate and adopt a PBC control information block. | |
static unsigned int | pbc_lock_access (PBC_Control *ctl_p) |
Lock access to a PBC control block. | |
static unsigned int | pbc_unlock_access (PBC_Control *ctl_p, unsigned int status) |
Unlock access to a PBC control block. | |
static unsigned int | pbc_change_state (PBC_Control *ctl_p, unsigned int valid_state, PBC_ControlState new_state) |
Change the state of the PBC functions. | |
unsigned int | PBC_initialize (ITC_Task *task_p, ITC_TaskID tid) |
Initialize the PBC application-level functions. | |
unsigned int | PBC_init (void) |
Initialize the PBC application-level functions using CDM. | |
unsigned int | PBC_shutdown (void) |
Shut down the PBC application-level functions. | |
Variables | |
PBC_Control * | PBC_pbc = NULL |
Control block for PBC. | |
static const PBC_DB_Schema | Pbc_def_db |
Default PBC configuration database. |
CVS $Id: PBC_control.c,v 1.9 2005/08/12 16:40:32 dmay Exp $
Control functions for the application-level portion of the PBC. These functions are used within the context of another task, so they do not actually start and configure a task of their own.
|
Change the state of the PBC functions.
|
|
Allocate and adopt a PBC control information block.
|
|
Initialize the PBC application-level functions using CDM. This function is a wrapper for PBC_initialize() that uses CDM to determine its parameters.
|
|
Initialize the PBC application-level functions. This function initializes the application-level portion of the PBC package. At the application level, there is no PBC task. Instead, the handlers for the PBC telecommands are attached to another task. If a valid value is provided for either the task_p or the tid parameter, then this function will attach the PBC command handlers to the corresponding task. If neither parameter is specified (by setting task_p to NULL and tid to -1), then it is assumed that the controlling task is responsible for attaching the PBC command handlers.
|
|
Lock access to a PBC control block.
|
|
Allocate a packet from an FPA pool.
|
|
Free a packet from an FPA pool.
|
|
Initialize an FPA pool.
|
|
Release the FPA pool memory.
|
|
Shut down the PBC application-level functions.
|
|
Unlock access to a PBC control block.
|
|
Initial value: { 10, ITC_TID_LCM, }
|
|
Control block for PBC. Pointer to the control block (state) for the PBC application-level functions. The actual control block buffer is allocated during PBC_initialize(). |