xref: /btstack/doc/manual/btstack_gettingstarted.tex (revision 2816575b0686ec722d2b99c43493346725efc950)
10db2ac53SMilanka Ringwald\UseRawInputEncoding
21ca3442bSMatthias Ringwald\documentclass[a4paper,titlepage,oneside,12pt]{amsart} %amsart
31ca3442bSMatthias Ringwald\usepackage{graphicx}
41ca3442bSMatthias Ringwald\usepackage[colorlinks=true]{hyperref}
51ca3442bSMatthias Ringwald%\usepackage{geometry} % see geometry.pdf on how to lay out the page. There's lots.
61ca3442bSMatthias Ringwald\usepackage[margin=1.3in]{geometry}
71ca3442bSMatthias Ringwald\geometry{a4paper} % or letter or a5paper or ... etc
81ca3442bSMatthias Ringwald% \geometry{landscape} % rotated page geometry
91ca3442bSMatthias Ringwald\usepackage{ifthen}
101ca3442bSMatthias Ringwald\usepackage{longtable}
111ca3442bSMatthias Ringwald
121ca3442bSMatthias Ringwald% See the ``Article customise'' template for come common customisations
131ca3442bSMatthias Ringwald\usepackage[usenames,dvipsnames]{color}
141ca3442bSMatthias Ringwald
151ca3442bSMatthias Ringwald\usepackage[table]{xcolor}
161ca3442bSMatthias Ringwald
171ca3442bSMatthias Ringwald\definecolor{lightgray}{RGB}{245, 245, 245}
181ca3442bSMatthias Ringwald\definecolor{bkblue}{RGB}{18, 47, 76}
191ca3442bSMatthias Ringwald\definecolor{bklightblue}{RGB}{102, 131, 158}
201ca3442bSMatthias Ringwald\definecolor{mygreen}{rgb}{0,0.6,0}
211ca3442bSMatthias Ringwald\definecolor{orange}{RGB}{255,153,0}
221ca3442bSMatthias Ringwald
231ca3442bSMatthias Ringwald\usepackage{opensans}
241ca3442bSMatthias Ringwald\usepackage{setspace}
251ca3442bSMatthias Ringwald\usepackage{booktabs} \newcommand{\ra}[1]{\renewcommand{\arraystretch}{#1}}
261ca3442bSMatthias Ringwald
271ca3442bSMatthias Ringwald\usepackage{color}
281ca3442bSMatthias Ringwald
291ca3442bSMatthias Ringwald% show todos
301ca3442bSMatthias Ringwald\newcommand{\todo}[1]{\colorbox{yellow}{#1}}
311ca3442bSMatthias Ringwald% ignore todos
321ca3442bSMatthias Ringwald% \newcommand{\todo}[1]{}
331ca3442bSMatthias Ringwald
341ca3442bSMatthias Ringwald\newcommand{\toread}[1]{{\color{bklightblue} #1}}
351ca3442bSMatthias Ringwald
361ca3442bSMatthias Ringwald\usepackage{listings}
379a21630dSMatthias Ringwald% add passthrough command used by pandoc for listings, apparently not defined by rmarkdown (maybe need to be removed later)
389a21630dSMatthias Ringwald% https://github.com/rstudio/rmarkdown/commit/bc2a49ed9da00fd5ec414bc192b112bbba34513d
399a21630dSMatthias Ringwald\newcommand{\passthrough}[1]{#1}
401ca3442bSMatthias Ringwald\lstset{ %
411ca3442bSMatthias Ringwaldfloat,
421ca3442bSMatthias Ringwaldlanguage=C,                % choose the language of the code
431ca3442bSMatthias Ringwaldbasicstyle=\footnotesize,       % the size of the fonts that are used for the code
441ca3442bSMatthias Ringwald%numbers=left,                   % where to put the line-numbers
451ca3442bSMatthias Ringwald%numberstyle=\footnotesize,      % the size of the fonts that are used for the line-numbers
461ca3442bSMatthias Ringwald%stepnumber=1,                   % the step between two line-numbers. If it is 1 each line will be numbered
471ca3442bSMatthias Ringwald%numbersep=5pt,                  % how far the line-numbers are from the code
481ca3442bSMatthias Ringwaldbackgroundcolor=\color{lightgray},  % choose the background color. You must add \usepackage{color}
491ca3442bSMatthias Ringwaldshowspaces=false,               % show spaces adding particular underscores
501ca3442bSMatthias Ringwaldshowstringspaces=false,         % underline spaces within strings
511ca3442bSMatthias Ringwaldshowtabs=false,                 % show tabs within strings adding particular underscores
521ca3442bSMatthias Ringwaldframe=single,           % adds a frame around the code
531ca3442bSMatthias Ringwaldframerule=0.2pt,
541ca3442bSMatthias Ringwaldtabsize=2,          % sets default tabsize to 2 spaces
551ca3442bSMatthias Ringwaldcaptionpos=b,           % sets the caption-position to bottom
561ca3442bSMatthias Ringwaldbreaklines=true,        % sets automatic line breaking
571ca3442bSMatthias Ringwaldbreakatwhitespace=false,    % sets if automatic breaks should only happen at whitespace
581ca3442bSMatthias Ringwaldescapeinside={\%*}{*)},          % if you want to add a comment within your code
591ca3442bSMatthias Ringwaldbelowcaptionskip=5em,
601ca3442bSMatthias Ringwaldaboveskip=\baselineskip,
611ca3442bSMatthias Ringwaldbelowskip=\baselineskip,
621ca3442bSMatthias Ringwaldcommentstyle=\itshape\color{mygreen},
631ca3442bSMatthias Ringwaldkeywordstyle=\bfseries\color{black},
641ca3442bSMatthias Ringwaldidentifierstyle=\color{black},
651ca3442bSMatthias Ringwaldstringstyle=\color{blue},
66ec820d77SMatthias Ringwaldmorekeywords={*, btstack_timer_source_t, btstack_data_source_t, uint32_t, uint16_t, uint8_t, btstack_run_loop_TYPE, le_command_status_t, gatt_client_t,
67d25c33e5SMatthias Ringwald 							gatt_client_characteristic_t, gatt_client_service_t, gatt_client_characteristic_descriptor_t, service_record_item_t, bd_addr_t, btstack_packet_handler_t,
68797dcf6dSMatthias Ringwald							hci_cmd_t, btstack_control_t, btstack_link_key_db_t, link_key_t, device_name_t, hci_transport_t, hci_uart_config_t, sdp_query_event_t,
697fbb5f59SMatthias Ringwald							sdp_query_complete_event_t, sdp_client_query_rfcomm_service_event_t, sdp_parser_event_t, sdp_parser_event_type_t,
701ca3442bSMatthias Ringwald							sdp_parser_attribute_value_event_t, sdp_parser_complete_event_t, advertising_report_t, gc_state_t, le_service_event_t,
711ca3442bSMatthias Ringwald							le_characteristic_event_t}
721ca3442bSMatthias Ringwald}
731ca3442bSMatthias Ringwald
74767003cdSMatthias Ringwald\newcommand{\versionNr}{VERSION}
751ca3442bSMatthias Ringwald\newcommand{\authorMila}{Dr. sc. Milanka Ringwald}
761ca3442bSMatthias Ringwald\newcommand{\authorMatthias}{Dr. sc. Matthias Ringwald}
771ca3442bSMatthias Ringwald\newcommand{\bkContact}{\href{[email protected]}{[email protected]}}
781ca3442bSMatthias Ringwald\newcommand{\barWidth}{0.3cm}
791ca3442bSMatthias Ringwald\newcommand{\urlfoot}[2]{\href{#1}{{\color{blue} #2}}\footnote{#1}}
801ca3442bSMatthias Ringwald
811ca3442bSMatthias Ringwald\makeatletter
821ca3442bSMatthias Ringwald\renewcommand{\maketitle}{
831ca3442bSMatthias Ringwald  \begin{titlepage}
841ca3442bSMatthias Ringwald    \fosfamily
851ca3442bSMatthias Ringwald    \begin{center}
861ca3442bSMatthias Ringwald    \begin{minipage}[b]{\textwidth}
871ca3442bSMatthias Ringwald        \begin{minipage}[b]{.1\textwidth}
881ca3442bSMatthias Ringwald            \color{bkblue}\rule{\barWidth{}}{22cm}
891ca3442bSMatthias Ringwald        \end{minipage}
901ca3442bSMatthias Ringwald        \hfill\begin{minipage}[b]{.8\textwidth}\begin{flushright}
911ca3442bSMatthias Ringwald            {\color{bkblue}
926047cb1eSMatthias Ringwald            \versionNr{} \\
931ca3442bSMatthias Ringwald            \today \\}
941ca3442bSMatthias Ringwald            \vspace*{7.5cm}
951ca3442bSMatthias Ringwald            \hfill\includegraphics[width=0.85\textwidth]{picts/bklogo.pdf}
961ca3442bSMatthias Ringwald            \vspace*{1.5cm}
971ca3442bSMatthias Ringwald            \begin{spacing}{2}
981ca3442bSMatthias Ringwald                {\huge \color{bkblue} \@title} \\
991ca3442bSMatthias Ringwald                {\Large \color{bklightblue} Including Quickstart Guide}
1001ca3442bSMatthias Ringwald            \end{spacing}
1011ca3442bSMatthias Ringwald            \vspace*{1.5cm}
1021ca3442bSMatthias Ringwald            {\color{bkblue}\large \authorMila \\
1031ca3442bSMatthias Ringwald            \large \authorMatthias \\
1041ca3442bSMatthias Ringwald            \large \bkContact\\ }
1051ca3442bSMatthias Ringwald        \end{flushright}\end{minipage}
1061ca3442bSMatthias Ringwald        \vfill
1071ca3442bSMatthias Ringwald        \begin{minipage}[b]{\textwidth}
1081ca3442bSMatthias Ringwald            \color{bklightblue}\rule{\barWidth{}}{\barWidth{}}
1091ca3442bSMatthias Ringwald        \end{minipage}
1101ca3442bSMatthias Ringwald    \end{minipage}
1111ca3442bSMatthias Ringwald
1121ca3442bSMatthias Ringwald
1131ca3442bSMatthias Ringwald    \end{center}
1141ca3442bSMatthias Ringwald  \end{titlepage}
1151ca3442bSMatthias Ringwald}
1161ca3442bSMatthias Ringwald\makeatother
1171ca3442bSMatthias Ringwald
1181ca3442bSMatthias Ringwald\title[BTstack Manual] {BTstack Manual}
1191ca3442bSMatthias Ringwald\author{Copyright \copyright 2012-2015 BlueKitchen GmbH}
1201ca3442bSMatthias Ringwald
1211ca3442bSMatthias Ringwald%%% BEGIN DOCUMENT
1221ca3442bSMatthias Ringwald
1231ca3442bSMatthias Ringwald\newcommand{\UserGuide}{\urlfoot{http://processors.wiki.ti.com/index.php/PAN1315EMK\_User\_Guide\#RF3\_Connector}{User Guide}{}}
1241ca3442bSMatthias Ringwald\newcommand{\MSPGCCWiki}{\urlfoot{http://sourceforge.net/apps/mediawiki/mspgcc/index.php?title=MSPGCC\_Wiki}{MSPGCC Wiki}}
1251ca3442bSMatthias Ringwald\newcommand{\GNUMake}{\urlfoot{http://gnuwin32.sourceforge.net/packages/make.htm}{GNU Make}}
1261ca3442bSMatthias Ringwald\newcommand{\Python}{\urlfoot{http://www.python.org/getit/}{Python}}
1271ca3442bSMatthias Ringwald\newcommand{\mspgcc}{\urlfoot{http://sourceforge.net/projects/mspgcc/files/Windows/mingw32/}{mspgcc}}
1281ca3442bSMatthias Ringwald\newcommand{\BTSfile}{\urlfoot{http://processors.wiki.ti.com/index.php/CC256x\_Downloads}{BTS file}}
1291ca3442bSMatthias Ringwald\newcommand{\MSPFlasher}{\urlfoot{http://processors.wiki.ti.com/index.php/MSP430\_Flasher\_-\_Command\_Line\_Programmer}{MSP430Flasher}}
1301ca3442bSMatthias Ringwald\newcommand{\MSPDebug}{\urlfoot{http://mspdebug.sourceforge.net/}{MSPDebug}}
1311ca3442bSMatthias Ringwald\newcommand{\BtstackGithub}{\urlfoot{https://github.com/bluekitchen/btstack/archive/master.zip}{BTstack's page}}
1321ca3442bSMatthias Ringwald\newcommand{\gccarm}{\urlfoot{https://launchpad.net/gcc-arm-embedded}{arm-gcc}}
1331ca3442bSMatthias Ringwald\newcommand{\OpenOCD}{\urlfoot{http://openocd.org}{OpenOCD}}
1341ca3442bSMatthias Ringwald\newcommand{\mplabxc}{\urlfoot{http://www.microchip.com/pagehandler/en\_us/devtools/mplabxc/}{MPLAB XC}}
1351ca3442bSMatthias Ringwald\newcommand{\PICkit}{\urlfoot{http://www.microchip.com/DevelopmentTools/ProductDetails.aspx?PartNO=pg164130}{PICkit 3}}
1361ca3442bSMatthias Ringwald\newcommand{\pkgconfig}{\urlfoot{http://www.freedesktop.org/wiki/Software/pkg-config/}{pkg-config}}
1371ca3442bSMatthias Ringwald\newcommand{\libusb}{\urlfoot{www.libusb.org}{libusb}}
1381ca3442bSMatthias Ringwald\newcommand{\Zadig}{\urlfoot{http://zadig.akeo.ie}{Zadig}}
1391ca3442bSMatthias Ringwald\newcommand{\MSYS}{\urlfoot{www.mingw.org/wiki/msys}{MSYS}}
1401ca3442bSMatthias Ringwald\newcommand{\MINGW}{\urlfoot{www.mingw.org}{MINGW32}}
1411ca3442bSMatthias Ringwald
142318dcc17SMatthias Ringwald%% pandoc-tablenos: required package
143318dcc17SMatthias Ringwald\usepackage{caption}
144318dcc17SMatthias Ringwald
145*2816575bSMatthias Ringwald%% pandoc-fignos: environment to disable figure caption prefixes
146*2816575bSMatthias Ringwald\makeatletter
147*2816575bSMatthias Ringwald\newcounter{figno}
148*2816575bSMatthias Ringwald\newenvironment{fignos:no-prefix-figure-caption}{
149*2816575bSMatthias Ringwald  \caption@ifcompatibility{}{
150*2816575bSMatthias Ringwald    \let\oldthefigure\thefigure
151*2816575bSMatthias Ringwald    \let\oldtheHfigure\theHfigure
152*2816575bSMatthias Ringwald    \renewcommand{\thefigure}{figno:\thefigno}
153*2816575bSMatthias Ringwald    \renewcommand{\theHfigure}{figno:\thefigno}
154*2816575bSMatthias Ringwald    \stepcounter{figno}
155*2816575bSMatthias Ringwald    \captionsetup{labelformat=empty}
156*2816575bSMatthias Ringwald  }
157*2816575bSMatthias Ringwald}{
158*2816575bSMatthias Ringwald  \caption@ifcompatibility{}{
159*2816575bSMatthias Ringwald    \captionsetup{labelformat=default}
160*2816575bSMatthias Ringwald    \let\thefigure\oldthefigure
161*2816575bSMatthias Ringwald    \let\theHfigure\oldtheHfigure
162*2816575bSMatthias Ringwald    \addtocounter{figure}{-1}
163*2816575bSMatthias Ringwald  }
164*2816575bSMatthias Ringwald}
165*2816575bSMatthias Ringwald\makeatother
166*2816575bSMatthias Ringwald
167318dcc17SMatthias Ringwald%% pandoc-tablenos: environment to disable table caption prefixes
168318dcc17SMatthias Ringwald\makeatletter
169318dcc17SMatthias Ringwald\newcounter{tableno}
170318dcc17SMatthias Ringwald\newenvironment{tablenos:no-prefix-table-caption}{
171318dcc17SMatthias Ringwald  \caption@ifcompatibility{}{
172318dcc17SMatthias Ringwald    \let\oldthetable\thetable
173318dcc17SMatthias Ringwald    \let\oldtheHtable\theHtable
174318dcc17SMatthias Ringwald    \renewcommand{\thetable}{tableno:\thetableno}
175318dcc17SMatthias Ringwald    \renewcommand{\theHtable}{tableno:\thetableno}
176318dcc17SMatthias Ringwald    \stepcounter{tableno}
177318dcc17SMatthias Ringwald    \captionsetup{labelformat=empty}
178318dcc17SMatthias Ringwald  }
179318dcc17SMatthias Ringwald}{
180318dcc17SMatthias Ringwald  \caption@ifcompatibility{}{
181318dcc17SMatthias Ringwald    \captionsetup{labelformat=default}
182318dcc17SMatthias Ringwald    \let\thetable\oldthetable
183318dcc17SMatthias Ringwald    \let\theHtable\oldtheHtable
184318dcc17SMatthias Ringwald    \addtocounter{table}{-1}
185318dcc17SMatthias Ringwald  }
186318dcc17SMatthias Ringwald}
187318dcc17SMatthias Ringwald\makeatother
188318dcc17SMatthias Ringwald
1891ca3442bSMatthias Ringwald
1901ca3442bSMatthias Ringwald%level -1: part, 0: chapter, 1: section, etc.
1911ca3442bSMatthias Ringwald\setcounter{tocdepth}{3}
1921ca3442bSMatthias Ringwald
1931ca3442bSMatthias Ringwald\begin{document}
1941ca3442bSMatthias Ringwald
1951ca3442bSMatthias Ringwald\maketitle
1961ca3442bSMatthias Ringwald\hypersetup{linkcolor=blue}
1971ca3442bSMatthias Ringwald\hypersetup{urlcolor=blue}
1981ca3442bSMatthias Ringwald\hypersetup{citecolor=blue}
1991ca3442bSMatthias Ringwald
2001ca3442bSMatthias Ringwald\tableofcontents
2011ca3442bSMatthias Ringwald\pagebreak
2021ca3442bSMatthias Ringwald
2031ca3442bSMatthias Ringwald
2041ca3442bSMatthias Ringwald\input{btstack_final}
2051ca3442bSMatthias Ringwald
2061ca3442bSMatthias Ringwald\end{document}