diff --git a/extras/Doxyfile b/extras/Doxyfile index 700fde9..b7b3ae2 100644 --- a/extras/Doxyfile +++ b/extras/Doxyfile @@ -38,7 +38,7 @@ PROJECT_NAME = muCom # could be handy for archiving the generated documentation or if some version # control system is used. -PROJECT_NUMBER = 1.3 +PROJECT_NUMBER = 2.0 # Using the PROJECT_BRIEF tag one can provide an optional one line description # for a project that appears at the top of each page and should give viewer a diff --git a/extras/html/annotated.html b/extras/html/annotated.html index 23c1ca2..d39857a 100644 --- a/extras/html/annotated.html +++ b/extras/html/annotated.html @@ -19,7 +19,7 @@
CmuCom | File containing the main class for the muCom interface when being used for an Arduino |
CmuCom | Main class for the muCom interface when being used for an Arduino |
CmuCom_LinkedVariable_str | Internal structure to store references to linked variables |
CmuComBase | Base muCom class |
CmuComBase | Base muCom class |
File containing the main class for the muCom interface when being used for an Arduino. +
Main class for the muCom interface when being used for an Arduino. More...
#include <muCom.h>
Public Member Functions | |
- | muCom (Stream &ser, uint8_t num_var, uint8_t num_func) |
+ | muCom (Stream &ser, struct muCom_LinkedVariable_str *var_buf, uint8_t num_var, muComFunc *func_buf, uint8_t num_func) |
![]() | |
muComBase (uint8_t num_var, uint8_t num_func) | |
Constructor of the base class. More... | |
- | ~muComBase (void) |
Destructor of the base class. | |
muComBase (struct muCom_LinkedVariable_str *var_buf, uint8_t num_var, muComFunc *func_buf, uint8_t num_func) | |
Constructor of the base class. More... | |
uint32_t | getLastCommTime (void) |
Get timestamp of last successful communication. More... | |
Set timeout for read requests. More... | |
uint8_t | handle (void) |
Handle the muCom interface. More... | |
Handle the muCom interface. More... | |
int8_t | linkFunction (uint8_t index, muComFunc function) |
Link function to the muCom interface. More... | |
Link function to the muCom interface. More... | |
int8_t | linkVariable (uint8_t index, uint8_t *var, uint8_t size) |
Link a variable or a buffer to the muCom interface. More... | |
Link a variable or a buffer to the muCom interface. More... | |
int8_t | linkVariable (uint8_t index, uint8_t *var) |
int8_t | linkVariable (uint8_t index, float *var) |
+int8_t | linkVariable (uint8_t index, double *var) |
void | invokeFunction (uint8_t index, uint8_t *data, uint8_t cnt) |
Invoke a function at the communication partner. More... | |
void | writeFloat (uint8_t index, float data) |
Write a float to the communication partner. More... | |
void | writeDouble (uint8_t index, double data) |
Write a double to the communication partner (not available on AVR microcontrollers) More... | |
int8_t | read (uint8_t index, uint8_t *data, uint8_t cnt) |
Read data from the communication partner. More... | |
int8_t | readFloat (uint8_t index, float *data) |
Read a float from the communication partner. More... | |
int8_t | readDouble (uint8_t index, double *data) |
Read a double from the communication partner (not available on AVR microcontrollers) More... | |
uint8_t | readByte (uint8_t index) |
Read a byte from the communication partner. More... | |
float | readFloat (uint8_t index) |
Read a float from the communication partner. More... | |
double | readDouble (uint8_t index) |
Read a float from the communication partner. More... | |
File containing the main class for the muCom interface when being used for an Arduino.
-Main class for the muCom interface when being used for an Arduino
-This class inherits all functions from the muCom base class (see muComBase) and additionally implements the interface for the HW access when using the muCom interface on an Arduino. It uses the Stream class for communication which can be implemented by the hardware and software UARTS, as well as USB serial emulations.
+Main class for the muCom interface when being used for an Arduino.
+This class inherits all functions from the muCom base class (see muComBase) and additionally implements the interface for the HW access when using the muCom interface on an Arduino. It uses the Stream class for communication which can be implemented by the hardware and software UARTS, as well as USB serial emulations.
Public Member Functions | |
muComBase (uint8_t num_var, uint8_t num_func) | |
Constructor of the base class. More... | |
- | ~muComBase (void) |
Destructor of the base class. | |
muComBase (struct muCom_LinkedVariable_str *var_buf, uint8_t num_var, muComFunc *func_buf, uint8_t num_func) | |
Constructor of the base class. More... | |
uint32_t | getLastCommTime (void) |
Get timestamp of last successful communication. More... | |
Set timeout for read requests. More... | |
uint8_t | handle (void) |
Handle the muCom interface. More... | |
Handle the muCom interface. More... | |
int8_t | linkFunction (uint8_t index, muComFunc function) |
Link function to the muCom interface. More... | |
Link function to the muCom interface. More... | |
int8_t | linkVariable (uint8_t index, uint8_t *var, uint8_t size) |
Link a variable or a buffer to the muCom interface. More... | |
Link a variable or a buffer to the muCom interface. More... | |
int8_t | linkVariable (uint8_t index, uint8_t *var) |
int8_t | linkVariable (uint8_t index, float *var) |
+int8_t | linkVariable (uint8_t index, double *var) |
void | invokeFunction (uint8_t index, uint8_t *data, uint8_t cnt) |
Invoke a function at the communication partner. More... | |
void | writeFloat (uint8_t index, float data) |
Write a float to the communication partner. More... | |
void | writeDouble (uint8_t index, double data) |
Write a double to the communication partner (not available on AVR microcontrollers) More... | |
int8_t | read (uint8_t index, uint8_t *data, uint8_t cnt) |
Read data from the communication partner. More... | |
int8_t | readFloat (uint8_t index, float *data) |
Read a float from the communication partner. More... | |
int8_t | readDouble (uint8_t index, double *data) |
Read a double from the communication partner (not available on AVR microcontrollers) More... | |
uint8_t | readByte (uint8_t index) |
Read a byte from the communication partner. More... | |
float | readFloat (uint8_t index) |
Read a float from the communication partner. More... | |
double | readDouble (uint8_t index) |
Read a float from the communication partner. More... | |
Base muCom class.
-This class implements the muCom protocol itself and relies on being inherited in order to implement the actual serial interface.
+Base muCom class.
+This class implements the muCom protocol itself and relies on being inherited in order to implement the actual serial interface.
[in] | var_buf | Fixed buffer for linked variables |
[in] | num_var | Max. number of variables to be linked |
[in] | func_buf | Fixed buffer for linked functions |
[in] | num_func | Max. number of functions to be linked |
Handle the muCom interface.
-This function handles the muCom interface and decodes the received data. It should be executed as often as possible and will handle writing to and reading from linked variables as well as executing requested functions. This function is also used during reading data from the communication partner.
Handle the muCom interface.
+This function handles the muCom interface and decodes the received data. It should be executed as often as possible and will handle writing to and reading from linked variables as well as executing requested functions. This function is also used during reading data from the communication partner.
Link function to the muCom interface.
+Link function to the muCom interface.