forked from Opendigitalradio/mmbtools-doc
-
Notifications
You must be signed in to change notification settings - Fork 0
/
mmbtools.tex
207 lines (173 loc) · 6.48 KB
/
mmbtools.tex
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
\RequirePackage[l2tabu, orthodox]{nag}
\documentclass[a4paper,oneside,10pt]{article}
%include version control info
\input{vc.tex}
%\usepackage[bindingoffset=1.5cm,centering,includeheadfoot,margin=3cm]{geometry}
\usepackage[T1]{fontenc}
\usepackage[utf8]{inputenc}
\usepackage[pdftex]{graphicx}
%\usepackage{subfig}
\usepackage[protrusion=true,expansion=true]{microtype}
\usepackage{wrapfig}
\usepackage{fancybox}
\usepackage{shadow}
\usepackage{xspace}
\usepackage{acronym}
%\usepackage{lmodern} % new latin extended computer modern font}, use with T1
%\usepackage{pxfonts} % has replaced palatino
\usepackage{cmbright}
\usepackage{listings}
\usepackage[allowlitunits]{siunitx}
% Try $20\micro\seconds$
%\addtolength{\oddsidemargin}{-1cm}
%\addtolength{\evensidemargin}{-1cm}
%\addtolength{\textwidth}{+2cm}
%\usepackage{showframe}
%\usepackage{lastpage}
% for \pageref{LastPage}
% fancy header
\usepackage{fancyhdr}
\pagestyle{fancy}
\fancyhf{} % clear default header and footer
\fancyhead[R]{\textit{\nouppercase{\leftmark}}}
\fancyhead[C]{}
\fancyfoot[R]{--\thepage--}
\fancyfoot[L]{\tiny{rev~\GITAbrHash, \GITAuthorDate, \GITAuthorName.}}
\setlength{\headheight}{14pt}
\newcommand\Hrule{\noindent\rule{\linewidth}{1.5pt}}
\newcommand{\sidenote}[1]{\marginpar{\scriptsize{\textsf{#1}}}} % Bram's sidenote for comments
%\usepackage{titlesec}
\usepackage[pdftex,
pdfauthor={Matthias P. Braendli},
pdftitle={ODR-mmbTools Documentation},
pdfsubject={},
pdfkeywords={Digital Audio Broadcasting,DAB,single-frequency network,SFN,mmbTools,ODR-mmbTools,open-source,software-defined radio},
pdfcreator=pdflatex]{hyperref}
\hypersetup{colorlinks, citecolor=black, filecolor=black, linkcolor=black, urlcolor=black}
\newcommand{\weblink}[2]{\href{#1}{\url{#1}: \textsc{#2}}}
\newcommand{\footnoteurl}[1]{\footnote{\url{#1}}}
\newcommand{\us}{\,\si{\micro\second}\xspace}
\newcommand{\km}{\,\si{\kilo\meter}\xspace}
\newcommand{\ms}{\,ms}
\newcommand{\dabplus}{DAB$^\mathrm{+}$\xspace}
\newcommand{\captionwidth}{0.9\textwidth}
\newcommand{\mmbtools}{\mbox{ODR-mmbTools}\xspace}
\newcommand{\filename}[1]{\texttt{#1}}
% index stuff
\usepackage{tocbibind} % Index in TOC
%\usepackage{makeidx}
%\usepackage{showidx} % show index entries in margin
%\makeindex
%\newcommand{\bib}[4]{\item{\textsc{#1}, \emph{#2}, #3\\\hspace{2em}#4}}
% ---------------------------------------------------------
\newcommand{\titleinfo}{ODR-mmbTools \\
Open-Source Software-Defined \dabplus Tools}
\author{Matthias P. Brändli}
\date{2 May 2014}
\title{\titleinfo}
% Margins for handwritten notes
%\addtolength{\oddsidemargin}{-2cm}
%\addtolength{\evensidemargin}{-2cm}
%\addtolength{\textwidth}{-2cm}
\usepackage{color}
\definecolor{Brown}{cmyk}{0,0.81,1,0.60}
\definecolor{OliveGreen}{cmyk}{0.64,0,0.95,0.40}
\definecolor{CadetBlue}{cmyk}{0.62,0.57,0.23,0}
\definecolor{lightlightgray}{cmyk}{0,0,0,0.02}
\definecolor{gray}{cmyk}{0,0,0,0.8}
% LaTeX magic: make sections have a cleardoublepage
% Useful for twoside only
%\let\stdsection\section
%\renewcommand*\section{\cleardoublepage\stdsection}
\begin{document}
\lstset{
language=C, % Code langugage
basicstyle=\ttfamily, % Code font, Examples: \footnotesize, \ttfamily
keywordstyle=\color{OliveGreen}, % Keywords font ('*' = uppercase)
commentstyle=\color{gray}, % Comments font
numbers=left, % Line nums position
numberstyle=\tiny, % Line-numbers fonts
stepnumber=1, % Step between two line-numbers
numbersep=5pt, % How far are line-numbers from code
backgroundcolor=\color{lightlightgray}, % Choose background color
frame=none, % A frame around the code
tabsize=2, % Default tab size
captionpos=b, % Caption-position = bottom
breaklines=true, % Automatic line breaking?
breakatwhitespace=false, % Automatic breaks only at whitespace?
showspaces=false, % Dont make spaces visible
showtabs=false, % Dont make tabls visible
morekeywords={uint32_t,uint8_t,uint16_t,time_spec_t,size_t,
clock_config_t},
}
\pagestyle{empty}
\pagenumbering{roman}
\begin{titlepage}
\null\vfil
\begin{flushleft}
\huge \textbf{\titleinfo}
\end{flushleft}
\par
\hrule height 4pt
\par
\begin{flushright}
\large
\textsl{Project Documentation} \par
\end{flushright}
\vspace{\fill}
\vspace*{\stretch{1}}
\begin{center}
\Large
\textsc{Matthias P. Braendli, for Opendigitalradio\\\href{http://opendigitalradio.org}{http://opendigitalradio.org}\\2014}
\end{center}
\vspace{\fill}
\vspace*{\stretch{2}}
\begin{figure}[!h]
\centering
\parbox{2.2in}{\includegraphics[width=16em]{figures/dab-pour-chats.jpg}}
\qquad
\caption{Okay, maybe put a real logo here\ldots}
\end{figure}
\vspace*{1cm}
\begin{center}
This work is licensed under a \\
Creative Commons Attribution-ShareAlike 4.0 International License.\\
\url{http://creativecommons.org/licenses/by-sa/4.0/}
\end{center}
\end{titlepage}
\pagestyle{fancy}
\tableofcontents
\section*{Acronyms}
\markboth{Acronyms}{}
\addcontentsline{toc}{section}{Acronyms}
\begin{acronym}[mmbTools]
\acro{1PPS}{One pulse per second}
\acro{CIF}{Common Interleaved Frame}
\acro{CRC}{Communications Research Centre Canada}
\acro{DAB}{Digital Audio Broadcasting}
\acro{DMB}{Digital Multimedia Broadcasting}
\acro{ETI}{Ensemble Transport Interface}
\acro{ETSI}{European Telecommunications Standards Institute}
\acro{FIC}{Fast Information Channel}
\acro{HE-AAC}{High Efficiency Advanced Audio Codec}
\acro{mmbTools}{Mobile Multimedia Broadcasting Tools}
\acro{MNSC}{Multiplex Network Signalling Channel}
\acro{NTP}{Network Time Protocol}
\acro{OCXO}{Oven-Controlled Crystal Oscillator}
\acro{OFDM}{Orthogonal Frequency-Division Multiplexing}
\acro{PRBS}{Pseudo-Random Bit Sequence}
\acro{SFN}{Single-Frequency Network}
\acro{TCXO}{Temperature-Compensated Crystal Oscillator}
\acro{TIST}{Timestamp field in the ETI frame}
\acro{TM}{Transmission Mode}
\acro{UHD}{USRP Hardware Driver}
\acro{USRP}{Universal Software-Radio Peripheral}
\end{acronym}
\pagenumbering{arabic}
\include{introduction}
\include{interfaces}
\include{scenarios}
\appendix
\include{appendix}
\end{document}
% vim: spl=en spell tw=80 et