Main Page   Interface   Data Structures   File List   Data Fields   Globals  

BSET.c File Reference

#include "vxWorks.h"
#include "stdlib.h"
#include "stdio.h"
#include "taskLib.h"
#include "sigLib.h"
#include "sockLib.h"
#include "netinet/in.h"
#include "BSYNC/BSYNC.h"
#include "BSYNC/BSET.h"
#include "BSYNC/BSET_port.h"

Functions

void BSET (unsigned txRate)
 The BSET application main task entry function. More...

int BSET_init (void)
 Initialize resources for BSET application. More...

void BSET_exit (int signal)
 Cleanup resources for BSET application. More...

int BSET_start (int taskPri, int stackSize, unsigned txRate)
 Start the BSET application running. More...


Variables

int BSET_rateSock = -1

Detailed Description


Function Documentation

void BSET unsigned    txRate [static]
 

The BSET application main task entry function.

After initializing resources, the BSET() task function runs forever, listening on the BSET_rateSock socket for a new rate command word. Once received, the bit sync library function BSYNC_configure() is called to set the new bit rate in hardware.

Parameters:
txRate  The initial telemetry rate in bits / sec.

void BSET_exit int    signal [static]
 

Cleanup resources for BSET application.

This function peforms the following actions to cleanup the BSET application after operation:

This function is called when signal SIGTERM is sent to task BSET().
Parameters:
signal  Ignored.

int BSET_init void    [static]
 

Initialize resources for BSET application.

This function peforms the following actions to setup the BSET application for operation:

Return values:
0  Success.
-1  Failure because a resource could not be created or initialized.

int BSET_start int    taskPri,
int    stackSize,
unsigned    txRate
 

Start the BSET application running.

Starts the BSET() task running.

Parameters:
taskPri  The priority of the BIU application task.
taskStack  The stack size of the BIU application task.
txRate  The initial telemetry rate in bits / sec.
Return values:
0  Success.
-1  Failure.


Variable Documentation

int BSET_rateSock = -1 [static]
 

A UDP/IP socket for receiving rate commands.


Generated on Thu Mar 7 15:36:37 2002 by doxygen1.2.14 written by Dimitri van Heesch, © 1997-2002