Configuration
This is the default configuration of the middleware.
When any of the settings shall be modified, it shall be done in dedicated application config lwpkt_opts.h file.
Note
Check Getting started for guidelines on how to create and use configuration file.
- group LWPKT_OPT
Default configuration setup.
Defines
-
LWPKT_CFG_MAX_DATA_LEN
Maximum length of
datapart of the packet in units of bytes.
-
LWPKT_CFG_ADDR_BROADCAST
Address identifying broadcast message to all devices.
-
LWPKT_CFG_USE_ADDR
Enables
1or disables0fromandtofields in the protocol.This features is useful if communication is between 2 devices exclusively, without addressing requirements
-
LWPKT_CFG_ADDR_EXTENDED
Enables
1or disables0extended address length.When enabled, multi-byte addresses are supported with MSB codification. Maximum address is limited to
32-bits.When disabled, simple
8-bitaddress is fixed with single byte.Feature is disabled by default to keep architecture compatibility
-
LWPKT_CFG_USE_CMD
Enables
1or disables0cmdfield in the protocol.When disabled, command part is not used
-
LWPKT_CFG_USE_CRC
Enables
1or disables0CRC check in the protocol.
-
LWPKT_CFG_PROCESS_INPROG_TIMEOUT
Defines timeout time before packet is considered as not valid when too long time in data-read mode.
Used with lwpkt_process function
-
LWPKT_CFG_USE_EVT
Enables
1or disables0event functions for read and write operations.
-
LWPKT_CFG_MAX_DATA_LEN