GLAST/LAT > DAQ and FSW > FSW > Doxygen Index > CTDB / V5-5-4
Constituent: sumt_bc_pmc1553     Tag: mv2304
#include "CTDB/CO1553_util.h"
#include "CO1553_util_private.h"
Include dependency graph for CO1553_util.c:
Functions | |
unsigned short | CO1553_utilCmdCreate (unsigned short rtAddr, unsigned short subAddr, unsigned short wordCount, int txFlag) |
Creates a 1553 command word. | |
unsigned short | CO1553_utilCmdGetRTAddr (unsigned short cmdWord) |
Gets the RT address value from a 1553 command word. | |
unsigned short | CO1553_utilCmdGetSubAddr (unsigned short cmdWord) |
Gets the subaddress value from a 1553 command word. | |
unsigned short | CO1553_utilCmdGetWordCount (unsigned short cmdWord) |
Gets the word count value from a 1553 command word. | |
int | CO1553_utilCmdGetTxFlag (unsigned short cmdWord) |
Gets the Tx flag value from a 1553 command word. | |
void | CO1553_utilCmdSetRTAddr (unsigned short *cmdWord, unsigned short rtAddr) |
Sets the RT address value in a 1553 command word. | |
void | CO1553_utilCmdSetSubAddr (unsigned short *cmdWord, unsigned short subAddr) |
Sets the sub-address value in a 1553 command word. | |
void | CO1553_utilCmdSetWordCount (unsigned short *cmdWord, unsigned short wordCount) |
Sets the word count value in a 1553 command word. | |
void | CO1553_utilCmdSetTxFlag (unsigned short *cmdWord, int txFlag) |
Sets the TX flag value in a 1553 command word. |
|
Creates a 1553 command word. Constructs a 1553 bus command word out of components. This function can be used to create both data transfer and mode code commands. The subAddr value should be '0' to indicate a mode code command. If the command is a regular data transfer command, then the wordCount value indicates the number of 16-bit data words in the message. If the command is a mode code command, then the wordCount value is the mode code.
|
|
Gets the RT address value from a 1553 command word. Extracts the remote terminal address value from a 1553 bus command word.
|
|
Gets the subaddress value from a 1553 command word. Extracts the subaddress value from a 1553 bus command word.
|
|
Gets the Tx flag value from a 1553 command word. Determines if cmdWord represents a transmit or receive command. Remember that the direction is with respect to the remote terminal: transmit = RT->BC, receive = BC->RT.
|
|
Gets the word count value from a 1553 command word. Extracts either the word count value or the mode code value from a 1553 bus command word. If the embedded subaddress value is '0', then cmdWord is a mode code command and the returned value is the mode code. Otherwise, the returned value is the data word count.
|
|
Sets the RT address value in a 1553 command word. Inserts the remote terminal address value into a 1553 bus command word.
|
|
Sets the sub-address value in a 1553 command word. Inserts the subaddress value into a 1553 bus command word.
|
|
Sets the TX flag value in a 1553 command word. Determines if cmdWord represents a transmit or receive command. Remember that the direction is with respect to the remote terminal: transmit = RT->BC, receive = BC->RT.
|
|
Sets the word count value in a 1553 command word. Inserts either the word count value or the mode code value into a 1553 bus command word. If the embedded subaddress value is '0', then cmdWord is a mode code command and the inserted value is the mode code. Otherwise, the inserted value is the data word count.
|