20 lines
571 B
C
20 lines
571 B
C
//
|
|
// Created by xemon on 09.11.22.
|
|
//
|
|
#include "ComIntCmd/SerialBridge.h"
|
|
|
|
uint8_t XfcProtMethod_SerialBridgeTable(tXfcArray *request, tXfcArray *response, tSerialBridges *table) {
|
|
|
|
XFC_CMD_TX_ADD_RAW(table->count);
|
|
|
|
uint8_t flagAllowAll = 0xFF;
|
|
|
|
for (uint16_t idx = 0; idx < table->count; ++idx) {
|
|
XFC_CMD_TX_ADD_RAW(table->items[idx].nameLength);
|
|
XFC_CMD_TX_ADD_ARR(table->items[idx].name, table->items[idx].nameLength);
|
|
//todo
|
|
XFC_CMD_TX_ADD_RAW(flagAllowAll);
|
|
}
|
|
|
|
return XFC_TRANSPORT_PROTOCOL_RESPONSE_RESULT_OK;
|
|
} |