iCub-main
|
#include <can_string_generic.h>
Public Member Functions | |
can_string_generic () | |
Default constructor. | |
~can_string_generic () | |
Destructor. | |
int | add_string (void *can_packet) |
Process a string can packet. | |
char * | print (int buffer_num, const char *canDevName, int netNum) |
Prints a string buffer. | |
void | clear_string (int buffer_num) |
Resets the string buffer. | |
Definition at line 31 of file can_string_generic.h.
|
inline |
Default constructor.
Definition at line 80 of file can_string_generic.h.
|
inline |
Destructor.
Definition at line 86 of file can_string_generic.h.
|
inline |
Process a string can packet.
All can packets belonging to the same string are joined in the same string buffer untill the string is complete.
can_packet | is the can message (CMSG* type). It must belong to the CAN_BCAST_PRINT class. |
Definition at line 103 of file can_string_generic.h.
|
inline |
Resets the string buffer.
cbuffer_num | is the number of the buffer. 0 <= buffer_num <= MAX_STRINGS |
Definition at line 90 of file can_string_generic.h.
|
inline |
Prints a string buffer.
The buffer can be already completed (all parts of the can string have been already received or not). If the string contains a "hole" (a can packet is not arrived yet), the string will be printed till the first missing packet.
buffer_num | is the number of the buffer. 0 <= buffer_num <= MAX_STRINGS |
Definition at line 167 of file can_string_generic.h.