#include <stddef.h>
#include "chan.h"
#include "arq_events.h"
Go to the source code of this file.
◆ ARQ_CH_CAP_MODEM_FRAME
| #define ARQ_CH_CAP_MODEM_FRAME 128 |
◆ ARQ_CH_CAP_MODEM_METRICS
| #define ARQ_CH_CAP_MODEM_METRICS 128 |
◆ ARQ_CH_CAP_MODEM_TX
| #define ARQ_CH_CAP_MODEM_TX 128 |
◆ ARQ_CH_CAP_SHUTDOWN
| #define ARQ_CH_CAP_SHUTDOWN 1 |
◆ ARQ_CH_CAP_TCP_CMD
| #define ARQ_CH_CAP_TCP_CMD 64 |
◆ ARQ_CH_CAP_TCP_PAYLOAD
| #define ARQ_CH_CAP_TCP_PAYLOAD 128 |
◆ ARQ_CH_CAP_TCP_STATUS
| #define ARQ_CH_CAP_TCP_STATUS 128 |
◆ arq_channel_bus_close()
Close all ARQ channel endpoints to stop producers/consumers.
- Parameters
-
◆ arq_channel_bus_dispose()
Dispose ARQ channel resources.
- Parameters
-
◆ arq_channel_bus_init()
Initialize ARQ channel bus.
- Parameters
-
| bus | Bus structure to initialize. |
- Returns
- 0 on success, negative on failure.
◆ arq_channel_bus_recv_cmd()
Receive next TCP command from ARQ bus.
- Parameters
-
| bus | Bus instance. |
| msg | Output command message. |
- Returns
- 0 on success, negative on closed/error.
◆ arq_channel_bus_recv_payload()
Receive next TCP payload message from ARQ bus.
- Parameters
-
| bus | Bus instance. |
| msg | Output payload message. |
- Returns
- 0 on success, negative on closed/error.
◆ arq_channel_bus_try_send_cmd()
Try to enqueue a TCP control command into ARQ bus.
- Parameters
-
| bus | Bus instance. |
| msg | Command message. |
- Returns
- 0 on success, negative if full/error.
◆ arq_channel_bus_try_send_payload()
| int arq_channel_bus_try_send_payload |
( |
arq_channel_bus_t * |
bus, |
|
|
const uint8_t * |
data, |
|
|
size_t |
len |
|
) |
| |
Try to enqueue TCP payload bytes into ARQ bus.
- Parameters
-
| bus | Bus instance. |
| data | Payload bytes. |
| len | Payload length in bytes. |
- Returns
- 0 on success, negative if full/error.