GEX thesis source code, full text, references

pre.utils.tex 1.4KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748
  1. %% HELPER MACROS
  2. \newcommand\nobr[1]{\mbox{#1}}
  3. % monospace
  4. \newcommand\mono[1]{\texttt{#1}}
  5. % library name
  6. \newcommand\lib[1]{\textit{#1}}
  7. % název listing figure
  8. % \renewcommand\listingscaption{Program}
  9. % \newcommand\zdroj[1]{\textit{Zdroj: #1}}
  10. %% UNITS
  11. \newcommand{\uF}{\micro\farad}
  12. \newcommand{\nF}{\nano\farad}
  13. \newcommand{\cm}{\centi\metre}
  14. \newcommand{\VperA}{\V/\A}
  15. \newcommand{\IIC}{I\textsuperscript{2}C\xspace}
  16. \newcommand{\IIS}{I\textsuperscript{2}S\xspace}
  17. \newcommand{\arm}{Arm\xspace}
  18. \newcommand{\armcm}{Arm Cortex-M\xspace}
  19. \newcommand{\mbed}{Arm Mbed\xspace}
  20. \newcommand*\xCmdName[2]{#1~(#2)\xspace}
  21. \newcommand*\CmdSuccess{\xCmdName{0x00}{Success}}
  22. \newcommand*\CmdPing{\xCmdName{0x01}{Ping}}
  23. \newcommand*\CmdError{\xCmdName{0x02}{Error}}
  24. \newcommand*\CmdBulkReadOffer{\xCmdName{0x03}{Bulk~Read~Offer}}
  25. \newcommand*\CmdBulkReadPoll{\xCmdName{0x04}{Bulk~Read~Poll}}
  26. \newcommand*\CmdBulkWriteOffer{\xCmdName{0x05}{Bulk~Write~Offer}}
  27. \newcommand*\CmdBulkData{\xCmdName{0x06}{Bulk~Data}}
  28. \newcommand*\CmdBulkEnd{\xCmdName{0x07}{Bulk~End}}
  29. \newcommand*\CmdBulkAbort{\xCmdName{0x08}{Bulk~Abort}}
  30. \newcommand*\CmdUnitRequest{\xCmdName{0x10}{Unit~Request}}
  31. \newcommand*\CmdUnitReport{\xCmdName{0x11}{Unit~Report}}
  32. \newcommand*\CmdListUnits{\xCmdName{0x20}{List~Units}}
  33. \newcommand*\CmdINIRead{\xCmdName{0x21}{INI~Read}}
  34. \newcommand*\CmdINIWrite{\xCmdName{0x22}{INI~Write}}
  35. \newcommand*\CmdPersistConfig{\xCmdName{0x23}{Persist~Config}}