BPLightContraption
 All Classes Namespaces Files Functions Variables Macros Pages
Functions
commands-text.h File Reference

Converts commands, powerunit ids, errors, etc (integers) to text. More...

#include "commands.h"
Include dependency graph for commands-text.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Functions

const char * ConvertPUID (char id)
 Returns the name of a PowerUnit given its ID. More...
 
const char * ConvertMCError (char error)
 Returns a description of an error from the microcontroller. More...
 
const char * ConvertCommandID (char cmd)
 Returns the text of a command given its ID. More...
 
const char * ConvertPUState (char state)
 Returns the text of a PowerUnit state. More...
 

Detailed Description

Converts commands, powerunit ids, errors, etc (integers) to text.

Author
Benjamin Pritchard (ben@b.nosp@m.enny.nosp@m.p.org)

Definition in file commands-text.h.

Function Documentation

const char* ConvertCommandID ( char  cmd)
inline

Returns the text of a command given its ID.

Definition at line 53 of file commands-text.h.

Here is the caller graph for this function:

const char* ConvertMCError ( char  error)
inline

Returns a description of an error from the microcontroller.

Definition at line 30 of file commands-text.h.

Here is the caller graph for this function:

const char* ConvertPUID ( char  id)
inline

Returns the name of a PowerUnit given its ID.

Definition at line 14 of file commands-text.h.

Here is the caller graph for this function:

const char* ConvertPUState ( char  state)
inline

Returns the text of a PowerUnit state.

Definition at line 72 of file commands-text.h.

Here is the caller graph for this function: