8#include "dawn/porting/config.hxx"
9#include "dawn/proto/nxscope/nxscope.hxx"
25 PROTO_NXSCOPE_SERIAL_CFG_FIRST = 0,
30 PROTO_NXSCOPE_SERIAL_CFG_LAST = 31
35 , baud(CONFIG_DAWN_PROTO_NXSCOPE_SERIAL_BAUD)
36 , path(CONFIG_DAWN_PROTO_NXSCOPE_SERIAL_PATH)
41 ~CProtoNxscopeSerial()
override;
43#ifdef CONFIG_DAWN_OBJECT_HAS_NAME
44 const char *getClassNameStr()
const override
50 int initPriv()
override;
51 int deinitPriv()
override;
52 int startPriv()
override;
53 int stopPriv()
override;
72 return CProtoNxscopeSerial::cfgId(
78 return CProtoNxscopeSerial::cfgId(
false,
80 (count * (
sizeof(CProtoNxscope::SProtoNxscopeIOBind2) / 4)),
86 return CProtoNxscopeSerial::cfgId(
92 return CProtoNxscopeSerial::cfgId(
99 struct nxscope_ser_cfg_s nxsSerCfg;
102 int configureDesc(
const CDescObject &desc);
103 int confgureNxscopePriv();
Descriptor wrapper for individual object configuration.
@ PROTO_CLASS_NXSCOPE_SERIAL
NxScope real-time visualization (serial interface).
NXScope over serial port transport.
@ PROTO_NXSCOPE_SERIAL_CFG_BAUD
Baud rate.
@ PROTO_NXSCOPE_SERIAL_CFG_IOBIND2
I/O bindings with names.
@ PROTO_NXSCOPE_SERIAL_CFG_IOBIND
I/O bindings.
@ PROTO_NXSCOPE_SERIAL_CFG_PATH
Serial device path.
Real-time data visualization protocol (base class).
static ObjectCfgId objectCfg(uint8_t type, uint16_t cls, uint8_t dtype, bool rw, uint16_t size, uint8_t id)
Construct 32-bit ConfigID from component fields.
uint32_t ObjectCfgId
ConfigID type - single 32-bit value.
Out-of-tree user-extension hooks for Dawn.
@ OBJTYPE_PROTO
Protocol object type.
@ DTYPE_ANY
Wildcard data type (matches any actual type).
@ DTYPE_CHAR
Character/string type (null-terminated, 4-byte aligned).
@ DTYPE_UINT32
Unsigned 32-bit integer (0 to 4294967295).
uint32_t ObjectId
ObjectID type - single 32-bit value.
static ObjectId objectId(uint8_t type, uint16_t cls, uint8_t dtype, uint8_t flags, uint16_t priv)
Construct 32-bit ObjectID from component fields.