\hypertarget{BSYNC_8h}{
\section{BSYNC.h File Reference}
\label{BSYNC_8h}\index{BSYNC.h@{BSYNC.h}}
}
SBS 4400-VF10 Tunable Bit Synchrozier Interface Library. 


\subsection*{Defines}
\begin{CompactItemize}
\item 
\#define \hyperlink{BSYNC_8h_a0}{BSYNC\_\-STATUS\_\-LOCK}\ 0x01
\item 
\#define \hyperlink{BSYNC_8h_a1}{BSYNC\_\-STATUS\_\-NO\_\-SIGNAL}\ 0x02
\item 
\#define \hyperlink{BSYNC_8h_a2}{BSYNC\_\-STATUS\_\-POWER\_\-OK\_\-POS}\ 0x04
\item 
\#define \hyperlink{BSYNC_8h_a3}{BSYNC\_\-STATUS\_\-POWER\_\-OK\_\-NEG}\ 0x08
\item 
\#define \hyperlink{BSYNC_8h_a4}{BSYNC\_\-RATE\_\-MIN}\ 250
\item 
\#define \hyperlink{BSYNC_8h_a5}{BSYNC\_\-RATE\_\-MAX}\ 5000000
\end{CompactItemize}
\subsection*{Functions}
\begin{CompactItemize}
\item 
\hypertarget{BSYNC_8h_a6}{
\index{BSYNC_init@{BSYNC\_\-init}!BSYNC.h@{BSYNC.h}}\index{BSYNC.h@{BSYNC.h}!BSYNC_init@{BSYNC\_\-init}}
int \hyperlink{BSYNC_8h_a6}{BSYNC\_\-init} (unsigned char $\ast$vme\-Addr)}
\label{BSYNC_8h_a6}

\begin{CompactList}\small\item\em Initialize SBS bit sync board hardware.\item\end{CompactList}\item 
\hypertarget{BSYNC_8h_a7}{
\index{BSYNC_configure@{BSYNC\_\-configure}!BSYNC.h@{BSYNC.h}}\index{BSYNC.h@{BSYNC.h}!BSYNC_configure@{BSYNC\_\-configure}}
int \hyperlink{BSYNC_8h_a7}{BSYNC\_\-configure} (unsigned bit\-Rate)}
\label{BSYNC_8h_a7}

\begin{CompactList}\small\item\em Set the bit sync input rate.\item\end{CompactList}\item 
\hypertarget{BSYNC_8h_a8}{
\index{BSYNC_statusGet@{BSYNC\_\-statusGet}!BSYNC.h@{BSYNC.h}}\index{BSYNC.h@{BSYNC.h}!BSYNC_statusGet@{BSYNC\_\-status\-Get}}
unsigned \hyperlink{BSYNC_8h_a8}{BSYNC\_\-status\-Get} (void)}
\label{BSYNC_8h_a8}

\begin{CompactList}\small\item\em Get the bit sync hardware status value.\item\end{CompactList}\end{CompactItemize}


\subsection{Detailed Description}
SBS 4400-VF10 Tunable Bit Synchrozier Interface Library.





 The SBS 4400-VF10 bit sync board provides bit edge detection and clock recovery of the GLAST BFEM telemetry bit stream. The input is the bi-phase signal from the NSBF telemetry receiver. The output is a NRZ and clock signal pair which is suitable for input to the ISOMAX telemetry frame sync board.



\subsection{Define Documentation}
\hypertarget{BSYNC_8h_a5}{
\index{BSYNC.h@{BSYNC.h}!BSYNC_RATE_MAX@{BSYNC\_\-RATE\_\-MAX}}
\index{BSYNC_RATE_MAX@{BSYNC\_\-RATE\_\-MAX}!BSYNC.h@{BSYNC.h}}
\subsubsection[BSYNC\_\-RATE\_\-MAX]{\setlength{\rightskip}{0pt plus 5cm}\#define BSYNC\_\-RATE\_\-MAX\ 5000000}}
\label{BSYNC_8h_a5}


The maximum input bit rate in bits / second. \hypertarget{BSYNC_8h_a4}{
\index{BSYNC.h@{BSYNC.h}!BSYNC_RATE_MIN@{BSYNC\_\-RATE\_\-MIN}}
\index{BSYNC_RATE_MIN@{BSYNC\_\-RATE\_\-MIN}!BSYNC.h@{BSYNC.h}}
\subsubsection[BSYNC\_\-RATE\_\-MIN]{\setlength{\rightskip}{0pt plus 5cm}\#define BSYNC\_\-RATE\_\-MIN\ 250}}
\label{BSYNC_8h_a4}


The minimum input bit rate in bits / second. \hypertarget{BSYNC_8h_a0}{
\index{BSYNC.h@{BSYNC.h}!BSYNC_STATUS_LOCK@{BSYNC\_\-STATUS\_\-LOCK}}
\index{BSYNC_STATUS_LOCK@{BSYNC\_\-STATUS\_\-LOCK}!BSYNC.h@{BSYNC.h}}
\subsubsection[BSYNC\_\-STATUS\_\-LOCK]{\setlength{\rightskip}{0pt plus 5cm}\#define BSYNC\_\-STATUS\_\-LOCK\ 0x01}}
\label{BSYNC_8h_a0}


Bit Sync Status Bit Mask: The bit sync has reception lock. \hypertarget{BSYNC_8h_a1}{
\index{BSYNC.h@{BSYNC.h}!BSYNC_STATUS_NO_SIGNAL@{BSYNC\_\-STATUS\_\-NO\_\-SIGNAL}}
\index{BSYNC_STATUS_NO_SIGNAL@{BSYNC\_\-STATUS\_\-NO\_\-SIGNAL}!BSYNC.h@{BSYNC.h}}
\subsubsection[BSYNC\_\-STATUS\_\-NO\_\-SIGNAL]{\setlength{\rightskip}{0pt plus 5cm}\#define BSYNC\_\-STATUS\_\-NO\_\-SIGNAL\ 0x02}}
\label{BSYNC_8h_a1}


Bit Sync Status Bit Mask: The bit sync input has no signal. \hypertarget{BSYNC_8h_a3}{
\index{BSYNC.h@{BSYNC.h}!BSYNC_STATUS_POWER_OK_NEG@{BSYNC\_\-STATUS\_\-POWER\_\-OK\_\-NEG}}
\index{BSYNC_STATUS_POWER_OK_NEG@{BSYNC\_\-STATUS\_\-POWER\_\-OK\_\-NEG}!BSYNC.h@{BSYNC.h}}
\subsubsection[BSYNC\_\-STATUS\_\-POWER\_\-OK\_\-NEG]{\setlength{\rightskip}{0pt plus 5cm}\#define BSYNC\_\-STATUS\_\-POWER\_\-OK\_\-NEG\ 0x08}}
\label{BSYNC_8h_a3}


Bit Sync Status Bit Mask: The bit sync negative power supply is functioning properly. \hypertarget{BSYNC_8h_a2}{
\index{BSYNC.h@{BSYNC.h}!BSYNC_STATUS_POWER_OK_POS@{BSYNC\_\-STATUS\_\-POWER\_\-OK\_\-POS}}
\index{BSYNC_STATUS_POWER_OK_POS@{BSYNC\_\-STATUS\_\-POWER\_\-OK\_\-POS}!BSYNC.h@{BSYNC.h}}
\subsubsection[BSYNC\_\-STATUS\_\-POWER\_\-OK\_\-POS]{\setlength{\rightskip}{0pt plus 5cm}\#define BSYNC\_\-STATUS\_\-POWER\_\-OK\_\-POS\ 0x04}}
\label{BSYNC_8h_a2}


Bit Sync Status Bit Mask: The bit sync positive power supply is functioning properly. 