ProtoCore v1.0.16
Deterministic, zero-heap network stack for embedded targets
Loading...
Searching...
No Matches
protocore_gateway_port_config Struct Reference

Southbound port (radio / bus) configuration passed to protocore_gateway_add_port(). More...

#include <gateway.h>

Public Attributes

uint8_t port_id
 caller-assigned id (used in topics and up/down-link calls).
 
protocore_gateway_kind kind
 protocore_gateway_kind.
 
protocore_gateway_tx_fn tx
 downlink transmit (may be null for a receive-only port).
 
void * ctx
 opaque, forwarded to tx.
 
uint16_t rate_cap
 max uplink frames/second from this port (0 = unlimited).
 

Detailed Description

Southbound port (radio / bus) configuration passed to protocore_gateway_add_port().

Definition at line 90 of file gateway.h.

Member Data Documentation

◆ port_id

uint8_t protocore_gateway_port_config::port_id

caller-assigned id (used in topics and up/down-link calls).

Definition at line 92 of file gateway.h.

◆ kind

protocore_gateway_kind protocore_gateway_port_config::kind

protocore_gateway_kind.

Definition at line 93 of file gateway.h.

◆ tx

protocore_gateway_tx_fn protocore_gateway_port_config::tx

downlink transmit (may be null for a receive-only port).

Definition at line 94 of file gateway.h.

◆ ctx

void* protocore_gateway_port_config::ctx

opaque, forwarded to tx.

Definition at line 95 of file gateway.h.

◆ rate_cap

uint16_t protocore_gateway_port_config::rate_cap

max uplink frames/second from this port (0 = unlimited).

Definition at line 96 of file gateway.h.


The documentation for this struct was generated from the following file: