25 #include "modules/wltune.h"
37 net.ipmux_srv_ip =
NET_IP_U32(ip[0], ip[1], ip[2], ip[3]);
51 if (!wltune_update_info())
76 bool relative =
false;
84 tw = wlTuneInfo.tuneword + tw;
86 if (tw > 65535) tw = 65535;
89 if (!wltune_set_word(tw))
bool dbReadU8(DataBuffer *buf, uint8_t *byte)
Reads an unsigned byte.
bool _msgNetWlTuneInfo(MsgId *id, DataBuffer *buf)
Request the wavelength tuning subsystem state.
bool _msgNetWlTuneAck(MsgId *id, DataBuffer *buf)
Acknowledge the wavelength tuning.
System start up and management.
#define NET_IP_U32(A, B, C, D)
Creates a U32 IP address from components.
bool dbWriteI32(DataBuffer *buf, int32_t i)
Writes an 32 bits signed integer.
bool _msgNetWlTuneSet(MsgId *id, DataBuffer *buf)
Set the wavelength tuning word.
static bool msgTxCurError(MsgId *id)
Invoke to reply the current global error.
Defines a DataBuffer structure.
static bool dbReadBool(DataBuffer *buf, bool *boolean)
Reads a boolean.
Handles MCF packed messages from the higher protocol layer.
Manages the global system error.
bool msgTxReply(MsgId *id, DataBuffer *buf)
Invoke to send a reply.
bool msgRxBufCheck(DataBuffer *buf)
Checks the received buffer, and logs an error if there is something wrong.
This module is responsible for distributing error codes.
bool dbWriteU8(DataBuffer *buf, uint8_t byte)
Writes a unsigned byte.
The CLB stare module tracks is responsible for state management of the various sub-systems on the CLB...
If defined, events will not require an acknowledge.
bool dbReadI32(DataBuffer *buf, int32_t *i)
Reads an 32 bits signed integer.
#define DB_BUF_INIT(PTR, LEN)
Simple buffer initialization.
static bool msgTxReplyAck(MsgId *id)
Replies a simple ACK with no content.
bool dbWriteU16(DataBuffer *buf, uint16_t u)
Writes a unsigned short (16 bits unsigned) integer.