Skip to content

Commit

Permalink
doc: Updating the parameters list and adding a description of the com…
Browse files Browse the repository at this point in the history
…mands #41
  • Loading branch information
mgm8 committed May 14, 2021
1 parent 0495324 commit 61254c6
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions doc/chapters/firmware.tex
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,8 @@ \chapter{Firmware} \label{ch:firmware}

\section{Commands}

The SPI\nomenclature{\textbf{SPI}}{\textit{Serial Peripheral Interface.}} commands of the TTC module are available in \autoref{tab:commands}. All commands are composed by an ID field (1 byte), the content of the command and a checksum at the end of the command (2 bytes). The used checksum algorithm is the CRC16-CCITT\nomenclature{\textbf{CRC}}{\textit{Cyclic Redundancy Check.}} \nomenclature{\textbf{CCITT}}{\textit{Comité Consultatif International Téléphonique et Télégraphique.}} (initial value = 0x0000, polynomial = 0x1021) the value is calculated with the entire packet (ID field + command content).

\begin{table}[!h]
\centering
\begin{tabular}{cll}
Expand Down Expand Up @@ -109,6 +111,7 @@ \subsection{Variables and Parameters}
20 & RX packet counter (valid packets) & uint32 & R \\
21 & TX packets available in the FIFO buffer & uint8 & R \\
22 & RX packets available in the FIFO buffer & uint8 & R \\
23 & Number of bytes of the first available packet in the RX buffer & uint16 & R \\
\bottomrule[1.5pt]
\caption{Variables and parameters of the TTC 2.0.}
\label{tab:ttc2-variables}
Expand Down
Binary file modified doc/slb-ttc2-doc-v0.1.pdf
Binary file not shown.

0 comments on commit 61254c6

Please sign in to comment.