VLCB SDK
An opinionated SDK for VLCB protocol
Loading...
Searching...
No Matches
module.c File Reference
#include "./module.h"
#include <assert.h>
#include <time.h>
#include "param.h"
#include "state_machine.h"
#include "vlcb/common/vlcb_defs.h"
#include "vlcb/module.h"
#include "vlcb/module/param.h"
#include "vlcb/module/state.h"
#include "vlcb/net/packet/datagram.h"
#include "vlcb/net/packet/datagram/module.h"
#include "vlcb/net/socket.h"
#include "vlcb/net/socket/datagram.h"
#include "vlcb/platform/interface.h"
#include "vlcb/platform/log.h"
Include dependency graph for module.c:

Go to the source code of this file.

Macros

#define VLCB_MODULE_HEARTBEAT_MS   5000
 

Functions

static void HandleHeartbeat (VlcbModule *const self, const clock_t now)
 
static void HandleQueryNodeParameters (VlcbModule *const self)
 
static void HandleQueryNodeParameterByIndex (VlcbModule *const self, const VlcbNetPacketDatagram *const packet)
 
static void HandleSetNodeNumber (VlcbModule *const self, const VlcbNetPacketDatagram *const packet)
 
static void AbortSetup (VlcbModule *const self, clock_t now)
 
static void HandleQueryNodeInfo (VlcbModule *const self)
 
static void HandleQueryModuleName (VlcbModule *const self)
 
static void HandleRebootRequest (VlcbModule *const self, const VlcbNetPacketDatagram *const packet)
 
static void HandleMnsMessages (VlcbModule *const self, const VlcbNetPacketDatagram *const packet, clock_t now)
 
VlcbModule vlcb_module_New (const char *const name, VlcbNetIface *const iface, VlcbNetSocketDatagram *const socket, const IVlcbModuleUi ui, VlcbModuleParams *const params, RestartRequestHandler restartHandler)
 
void vlcb_module_Init (VlcbModule *const module, const clock_t now)
 
void vlcb_module_Poll (VlcbModule *const module, const clock_t now)
 

Macro Definition Documentation

◆ VLCB_MODULE_HEARTBEAT_MS

#define VLCB_MODULE_HEARTBEAT_MS   5000

Definition at line 21 of file module.c.

Function Documentation

◆ AbortSetup()

static void AbortSetup ( VlcbModule *const self,
clock_t now )
inlinestatic

Definition at line 108 of file module.c.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ HandleHeartbeat()

static void HandleHeartbeat ( VlcbModule *const self,
const clock_t now )
inlinestatic

Definition at line 24 of file module.c.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ HandleMnsMessages()

static void HandleMnsMessages ( VlcbModule *const self,
const VlcbNetPacketDatagram *const packet,
clock_t now )
inlinestatic

Definition at line 166 of file module.c.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ HandleQueryModuleName()

static void HandleQueryModuleName ( VlcbModule *const self)
inlinestatic

Definition at line 121 of file module.c.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ HandleQueryNodeInfo()

static void HandleQueryNodeInfo ( VlcbModule *const self)
inlinestatic

Definition at line 115 of file module.c.

Here is the caller graph for this function:

◆ HandleQueryNodeParameterByIndex()

static void HandleQueryNodeParameterByIndex ( VlcbModule *const self,
const VlcbNetPacketDatagram *const packet )
inlinestatic

Definition at line 93 of file module.c.

Here is the caller graph for this function:

◆ HandleQueryNodeParameters()

static void HandleQueryNodeParameters ( VlcbModule *const self)
inlinestatic

Definition at line 57 of file module.c.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ HandleRebootRequest()

static void HandleRebootRequest ( VlcbModule *const self,
const VlcbNetPacketDatagram *const packet )
inlinestatic

Definition at line 152 of file module.c.

Here is the caller graph for this function:

◆ HandleSetNodeNumber()

static void HandleSetNodeNumber ( VlcbModule *const self,
const VlcbNetPacketDatagram *const packet )
inlinestatic

Definition at line 100 of file module.c.

Here is the caller graph for this function:

◆ vlcb_module_Init()

void vlcb_module_Init ( VlcbModule *const module,
const clock_t now )

Definition at line 242 of file module.c.

Here is the call graph for this function:

◆ vlcb_module_New()

VlcbModule vlcb_module_New ( const char *const name,
VlcbNetIface *const iface,
VlcbNetSocketDatagram *const socket,
const IVlcbModuleUi ui,
VlcbModuleParams *const params,
RestartRequestHandler restartHandler )

Definition at line 219 of file module.c.

◆ vlcb_module_Poll()

void vlcb_module_Poll ( VlcbModule *const module,
const clock_t now )

Definition at line 249 of file module.c.

Here is the call graph for this function: