weAutSys' common types and helper functions
This file contains the definitions for weAutSys' common types and helper macros or functions. They are utilised in more than one application field respectively application or system module &mdash but not in bootloaders.
This file is part of weAutSys <weinert-automation.de>
Copyright © 2012 Albrecht Weinert, Bochum
Data Structures | |
struct | cliThr_data_t |
The organisational data for a command line interpreter (CLI) thread. More... | |
struct | hierThr_data_t |
The organisational data for a small thread hierarchy. More... | |
struct | modConfData_t |
The configuration data (type) for a Modbus handling. More... | |
struct | modTelegr_t |
The (start of a) Modbus TCP/IP telegram. More... | |
struct | modThr_data_t |
The organisational data for a Modbus handler thread. More... | |
struct | mThr_data_t |
State data for a thread (minimal) More... | |
struct | outFlashTextThr_data_t |
The organisational data for a flash strings array output thread. More... | |
struct | thr_data_t |
State data for a thread (universal variable type) More... | |
Defines | |
#define | EXTRA_THR_ST_SZ 158 |
Size of (extra) thread state data. | |
#define | FOLLOW_UP |
Follow up string marker for outFlashTextThr_data_t. | |
#define | LEN_OF_CLITHR_LINE |
The maximum number of characters in cliThr_data_t.line. | |
#define | SIZE_OF_BIGGEST_APPSTATE 164 |
The size of the biggest application state structure used in bytes. | |
Typedefs | |
typedef ptfnct_t( | fun_t )(struct thr_data_t *thrData) |
Type of a protothread function (struct thr_data_t *) | |
typedef ptfnct_t( | funA_t )(struct cliThr_data_t *thrData) |
Type of a protothread function (cliThr_data_t *) | |
typedef ptfnct_t( | funM_t )(struct modThr_data_t *thrData) |
Type of a protothread function (modThr_data_t *) | |
typedef ptfnct_t( | funU_t )(struct mThr_data_t *uthr_data) |
Type of a protothread function (struct mThr_data_t *) | |
typedef ptfnct_t( | funV_t )(void) |
Type of a protothread function (void) | |
typedef funU_t * | p2ptFun |
Pointer to a protothread function (struct mThr_data_t *) | |
typedef funA_t * | p2ptFunA |
Pointer to a protothread function (cliThr_data_t *) | |
typedef fun_t * | p2ptFunC |
Pointer to a protothread function (struct thr_data_t *) | |
typedef funM_t * | p2ptFunM |
Pointer to a protothread function (modThr_data_t *) | |
typedef funV_t * | p2ptFunV |
Pointer to a protothread function (void) | |
Variables | |
char const | bLF1 [] |
1 blank, 1 linefeed 0 terminated in flash memory | |
char const | bLF2 [] |
1 blank, 2 linefeed 0 terminated in flash memory | |
char const | l4nefeeds [] |
A short string with just one blank and four linefeeds in flash memory. |