VLCB SDK
An opinionated SDK for VLCB protocol
Loading...
Searching...
No Matches
param.h File Reference
#include <stdint.h>
#include "vlcb/common/module.h"
#include "vlcb/common/vlcb_defs.h"
Include dependency graph for inc/vlcb/module/param.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Data Structures

struct  VlcbModuleParams
 

Macros

#define VLCB_MODULE_PARAMS_MIN_LEN   20
 
#define VLCB_MODULE_PARAMS(name, len)
 
#define VLCB_MODULE_PARAMS_STD(name)
 

Functions

void vlcb_module_params_Init (VlcbModuleParams *const params, const VlcbModuleVersion version, const VlcbManufacturer moduleManu, const VlcbBusType busType, const uint8_t moduleType, const uint8_t cpuId, const VlcbProcessorManufacturer cpuManu, const VlcbModuleParamCpuManuId cpuManuId, const VlcbModuleParamLoadAddr loadAddr, const VlcbModuleFlags moduleFlags, const uint8_t nodeVariableCount, const uint8_t eventCount, const uint8_t eventVariableCount)
 

Macro Definition Documentation

◆ VLCB_MODULE_PARAMS

#define VLCB_MODULE_PARAMS ( name,
len )
Value:
uint8_t name##_data[sizeof(VlcbModuleParams) + sizeof(uint8_t) * len]; \
VlcbModuleParams *const name = (VlcbModuleParams *const)name##_data;

Definition at line 10 of file inc/vlcb/module/param.h.

◆ VLCB_MODULE_PARAMS_MIN_LEN

#define VLCB_MODULE_PARAMS_MIN_LEN   20

Definition at line 8 of file inc/vlcb/module/param.h.

◆ VLCB_MODULE_PARAMS_STD

#define VLCB_MODULE_PARAMS_STD ( name)
Value:
#define VLCB_MODULE_PARAMS(name, len)
#define VLCB_MODULE_PARAMS_MIN_LEN

Definition at line 14 of file inc/vlcb/module/param.h.

Function Documentation

◆ vlcb_module_params_Init()

void vlcb_module_params_Init ( VlcbModuleParams *const params,
const VlcbModuleVersion version,
const VlcbManufacturer moduleManu,
const VlcbBusType busType,
const uint8_t moduleType,
const uint8_t cpuId,
const VlcbProcessorManufacturer cpuManu,
const VlcbModuleParamCpuManuId cpuManuId,
const VlcbModuleParamLoadAddr loadAddr,
const VlcbModuleFlags moduleFlags,
const uint8_t nodeVariableCount,
const uint8_t eventCount,
const uint8_t eventVariableCount )
inline

Definition at line 18 of file param.c.