Move Conn Cfg into BLEGap
This commit is contained in:
1 parent
bb7392ae36
commit
f39421f4ef
5 files changed
+112
-87
No files matched your search
@@ -39,8 +39,65 @@
|
||||
BLEGap::BLEGap(void)
|
||||
{
|
||||
memclr(_peers, sizeof(_peers));
|
||||
|
||||
#if SD_VER >= 500
|
||||
_cfg_prph.mtu_max = BLE_GATT_ATT_MTU_DEFAULT;
|
||||
_cfg_prph.event_len = BLE_GAP_EVENT_LENGTH_DEFAULT;
|
||||
_cfg_prph.hvn_tx_qsize = BLE_GATTS_HVN_TX_QUEUE_SIZE_DEFAULT;
|
||||
_cfg_prph.wr_cmd_qsize = BLE_GATTC_WRITE_CMD_TX_QUEUE_SIZE_DEFAULT;
|
||||
|
||||
_cfg_central.mtu_max = BLE_GATT_ATT_MTU_DEFAULT;
|
||||
_cfg_central.event_len = BLE_GAP_EVENT_LENGTH_DEFAULT;
|
||||
_cfg_central.hvn_tx_qsize = BLE_GATTS_HVN_TX_QUEUE_SIZE_DEFAULT;
|
||||
_cfg_central.wr_cmd_qsize = BLE_GATTC_WRITE_CMD_TX_QUEUE_SIZE_DEFAULT;
|
||||
#endif
|
||||
|
||||
|
||||
}
|
||||
|
||||
|
||||
void BLEGap::configPrphConn(uint16_t mtu_max, uint8_t event_len, uint8_t hvn_qsize, uint8_t wrcmd_qsize)
|
||||
{
|
||||
_cfg_prph.mtu_max = maxof(mtu_max, BLE_GATT_ATT_MTU_DEFAULT);
|
||||
#if SD_VER >= 500
|
||||
_cfg_prph.event_len = maxof(event_len, BLE_GAP_EVENT_LENGTH_MIN);
|
||||
#endif
|
||||
_cfg_prph.hvn_tx_qsize = hvn_qsize;
|
||||
_cfg_prph.wr_cmd_qsize = wrcmd_qsize;
|
||||
}
|
||||
|
||||
void BLEGap::configCentralConn(uint16_t mtu_max, uint8_t event_len, uint8_t hvn_qsize, uint8_t wrcmd_qsize)
|
||||
{
|
||||
_cfg_central.mtu_max = maxof(mtu_max, BLE_GATT_ATT_MTU_DEFAULT);
|
||||
#if SD_VER >= 500
|
||||
_cfg_central.event_len = maxof(event_len, BLE_GAP_EVENT_LENGTH_MIN);
|
||||
#endif
|
||||
_cfg_central.hvn_tx_qsize = hvn_qsize;
|
||||
_cfg_central.wr_cmd_qsize = wrcmd_qsize;
|
||||
}
|
||||
|
||||
|
||||
uint16_t BLEGap::getMaxMtuByConnCfg(uint8_t conn_cfg)
|
||||
{
|
||||
return (conn_cfg == CONN_CFG_PERIPHERAL) ? _cfg_prph.mtu_max : _cfg_central.mtu_max;
|
||||
}
|
||||
|
||||
uint16_t BLEGap::getMaxMtu (uint8_t conn_handle)
|
||||
{
|
||||
return (getRole(conn_handle) == BLE_GAP_ROLE_PERIPH) ? _cfg_prph.mtu_max : _cfg_central.mtu_max;
|
||||
}
|
||||
|
||||
uint8_t BLEGap::getHvnQueueSize (uint8_t conn_handle)
|
||||
{
|
||||
return (getRole(conn_handle) == BLE_GAP_ROLE_PERIPH) ? _cfg_prph.hvn_tx_qsize : _cfg_central.hvn_tx_qsize;
|
||||
}
|
||||
|
||||
uint8_t BLEGap::getWriteCmdQueueSize (uint8_t conn_handle)
|
||||
{
|
||||
return (getRole(conn_handle) == BLE_GAP_ROLE_PERIPH) ? _cfg_prph.wr_cmd_qsize : _cfg_central.wr_cmd_qsize;
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* Get current Mac address and its type
|
||||
* @param mac address
|
||||
@@ -160,10 +217,10 @@ void BLEGap::_eventHandler(ble_evt_t* evt)
|
||||
(void) sd_ble_tx_packet_count_get(conn_handle, &txbuf_max);
|
||||
peer->hvn_tx_sem = xSemaphoreCreateCounting(txbuf_max, txbuf_max);
|
||||
#else
|
||||
peer->hvn_tx_sem = xSemaphoreCreateCounting(Bluefruit.getHvnTxQueue(), Bluefruit.getHvnTxQueue());
|
||||
peer->hvn_tx_sem = xSemaphoreCreateCounting(getHvnQueueSize(conn_handle), getHvnQueueSize(conn_handle));
|
||||
#endif
|
||||
|
||||
peer->wrcmd_tx_sem = xSemaphoreCreateCounting(Bluefruit.getWriteCmdQueue(), Bluefruit.getWriteCmdQueue());
|
||||
peer->wrcmd_tx_sem = xSemaphoreCreateCounting(getWriteCmdQueueSize(conn_handle), getWriteCmdQueueSize(conn_handle));
|
||||
}
|
||||
break;
|
||||
|
||||
@@ -267,7 +324,7 @@ void BLEGap::_eventHandler(ble_evt_t* evt)
|
||||
|
||||
case BLE_GATTS_EVT_EXCHANGE_MTU_REQUEST:
|
||||
{
|
||||
peer->att_mtu = minof(evt->evt.gatts_evt.params.exchange_mtu_request.client_rx_mtu, Bluefruit.getMaxMtu());
|
||||
peer->att_mtu = minof(evt->evt.gatts_evt.params.exchange_mtu_request.client_rx_mtu, getMaxMtu(conn_handle));
|
||||
VERIFY_STATUS( sd_ble_gatts_exchange_mtu_reply(conn_handle, peer->att_mtu), );
|
||||
|
||||
LOG_LV1("GAP", "ATT MTU is changed to %d", peer->att_mtu);
|
||||
|
||||
@@ -48,22 +48,30 @@ class BLEGap
|
||||
|
||||
BLEGap(void);
|
||||
|
||||
uint8_t getAddr(uint8_t mac[6]);
|
||||
bool setAddr(uint8_t mac[6], uint8_t type);
|
||||
// bool setPrivacy(); sd_ble_gap_privacy_set()
|
||||
uint8_t getAddr (uint8_t mac[6]);
|
||||
bool setAddr (uint8_t mac[6], uint8_t type);
|
||||
// bool setPrivacy (); sd_ble_gap_privacy_set()
|
||||
|
||||
bool connected(uint16_t conn_handle);
|
||||
bool connected (uint16_t conn_handle);
|
||||
|
||||
uint8_t getRole(uint16_t conn_handle);
|
||||
uint8_t getRole (uint16_t conn_handle);
|
||||
|
||||
uint8_t getPeerAddr(uint16_t conn_handle, uint8_t addr[6]);
|
||||
ble_gap_addr_t getPeerAddr(uint16_t conn_handle);
|
||||
uint8_t getPeerAddr (uint16_t conn_handle, uint8_t addr[6]);
|
||||
ble_gap_addr_t getPeerAddr (uint16_t conn_handle);
|
||||
uint16_t getPeerName (uint16_t conn_handle, char* buf, uint16_t bufsize);
|
||||
|
||||
uint16_t getPeerName(uint16_t conn_handle, char* buf, uint16_t bufsize);
|
||||
bool getHvnPacket(uint16_t conn_handle);
|
||||
bool getWriteCmdPacket(uint16_t conn_handle);
|
||||
void configPrphConn (uint16_t mtu_max, uint8_t event_len, uint8_t hvn_qsize, uint8_t wrcmd_qsize);
|
||||
void configCentralConn (uint16_t mtu_max, uint8_t event_len, uint8_t hvn_qsize, uint8_t wrcmd_qsize);
|
||||
|
||||
uint16_t getMTU(uint16_t conn_handle);
|
||||
uint16_t getMaxMtuByConnCfg (uint8_t conn_cfg);
|
||||
uint16_t getMaxMtu (uint8_t conn_handle);
|
||||
uint8_t getHvnQueueSize (uint8_t conn_handle);
|
||||
uint8_t getWriteCmdQueueSize (uint8_t conn_handle);
|
||||
|
||||
uint16_t getMTU (uint16_t conn_handle);
|
||||
|
||||
bool getHvnPacket (uint16_t conn_handle);
|
||||
bool getWriteCmdPacket (uint16_t conn_handle);
|
||||
|
||||
/*------------------------------------------------------------------*/
|
||||
/* INTERNAL USAGE ONLY
|
||||
@@ -73,6 +81,13 @@ class BLEGap
|
||||
void _eventHandler(ble_evt_t* evt);
|
||||
|
||||
private:
|
||||
struct {
|
||||
uint16_t mtu_max;
|
||||
uint8_t event_len;
|
||||
uint8_t hvn_tx_qsize;
|
||||
uint8_t wr_cmd_qsize;
|
||||
} _cfg_prph, _cfg_central;
|
||||
|
||||
// Array of TX Packet semaphore, indexed by connection handle
|
||||
// Peer info where conn_handle serves as index
|
||||
typedef struct {
|
||||
@@ -87,6 +102,8 @@ class BLEGap
|
||||
} gap_peer_t;
|
||||
|
||||
gap_peer_t _peers[BLE_MAX_CONN];
|
||||
|
||||
friend class AdafruitBluefruit;
|
||||
};
|
||||
|
||||
#endif /* BLEGAP_H_ */
|
||||
@@ -110,19 +110,6 @@ AdafruitBluefruit::AdafruitBluefruit(void)
|
||||
_sd_cfg.uuid128_max = BLE_UUID_VS_COUNT_DEFAULT;
|
||||
_sd_cfg.service_changed = 0;
|
||||
|
||||
_sd_cfg.prph.mtu_max = BLEGATT_ATT_MTU_MAX;
|
||||
_sd_cfg.central.mtu_max = BLE_GATT_ATT_MTU_DEFAULT;
|
||||
|
||||
#if SD_VER >= 500
|
||||
_sd_cfg.prph.event_len = BLE_GAP_EVENT_LENGTH_DEFAULT;
|
||||
_sd_cfg.prph.hvn_tx_qsize = 3;
|
||||
_sd_cfg.prph.wr_cmd_qsize = BLE_GATTC_WRITE_CMD_TX_QUEUE_SIZE_DEFAULT;
|
||||
|
||||
_sd_cfg.central.event_len = BLE_GAP_EVENT_LENGTH_DEFAULT;
|
||||
_sd_cfg.central.hvn_tx_qsize = BLE_GATTS_HVN_TX_QUEUE_SIZE_DEFAULT;
|
||||
_sd_cfg.central.wr_cmd_qsize = BLE_GATTC_WRITE_CMD_TX_QUEUE_SIZE_DEFAULT;
|
||||
#endif
|
||||
|
||||
|
||||
_prph_count = 0;
|
||||
_central_count = 0;
|
||||
@@ -185,37 +172,12 @@ void AdafruitBluefruit::configAttrTableSize(uint32_t attr_table_size)
|
||||
|
||||
void AdafruitBluefruit::configPrphConn(uint16_t mtu_max, uint8_t event_len, uint8_t hvn_qsize, uint8_t wrcmd_qsize)
|
||||
{
|
||||
_sd_cfg.prph.mtu_max = maxof(mtu_max, BLE_GATT_ATT_MTU_DEFAULT);
|
||||
#if SD_VER >= 500
|
||||
_sd_cfg.prph.event_len = maxof(event_len, BLE_GAP_EVENT_LENGTH_MIN);
|
||||
#endif
|
||||
_sd_cfg.prph.hvn_tx_qsize = hvn_qsize;
|
||||
_sd_cfg.prph.wr_cmd_qsize = wrcmd_qsize;
|
||||
Gap.configPrphConn(mtu_max, event_len, hvn_qsize, wrcmd_qsize);
|
||||
}
|
||||
|
||||
void AdafruitBluefruit::configCentralConn(uint16_t mtu_max, uint8_t event_len, uint8_t hvn_qsize, uint8_t wrcmd_qsize)
|
||||
{
|
||||
_sd_cfg.central.mtu_max = maxof(mtu_max, BLE_GATT_ATT_MTU_DEFAULT);
|
||||
#if SD_VER >= 500
|
||||
_sd_cfg.central.event_len = maxof(event_len, BLE_GAP_EVENT_LENGTH_MIN);
|
||||
#endif
|
||||
_sd_cfg.central.hvn_tx_qsize = hvn_qsize;
|
||||
_sd_cfg.central.wr_cmd_qsize = wrcmd_qsize;
|
||||
}
|
||||
|
||||
uint16_t AdafruitBluefruit::getMaxMtu(void)
|
||||
{
|
||||
return _sd_cfg.prph.mtu_max;
|
||||
}
|
||||
|
||||
uint8_t AdafruitBluefruit::getHvnTxQueue(void)
|
||||
{
|
||||
return _sd_cfg.prph.hvn_tx_qsize;
|
||||
}
|
||||
|
||||
uint8_t AdafruitBluefruit::getWriteCmdQueue(void)
|
||||
{
|
||||
return _sd_cfg.prph.wr_cmd_qsize;
|
||||
Gap.configCentralConn(mtu_max, event_len, hvn_qsize, wrcmd_qsize);
|
||||
}
|
||||
|
||||
|
||||
@@ -334,26 +296,26 @@ err_t AdafruitBluefruit::begin(uint8_t prph_count, uint8_t central_count)
|
||||
// ATT MTU
|
||||
varclr(&blecfg);
|
||||
blecfg.conn_cfg.conn_cfg_tag = CONN_CFG_PERIPHERAL;
|
||||
blecfg.conn_cfg.params.gatt_conn_cfg.att_mtu = _sd_cfg.prph.mtu_max;
|
||||
blecfg.conn_cfg.params.gatt_conn_cfg.att_mtu = Gap._cfg_prph.mtu_max;
|
||||
VERIFY_STATUS ( sd_ble_cfg_set(BLE_CONN_CFG_GATT, &blecfg, ram_start) );
|
||||
|
||||
// Event length and max connection for this config
|
||||
varclr(&blecfg);
|
||||
blecfg.conn_cfg.conn_cfg_tag = CONN_CFG_PERIPHERAL;
|
||||
blecfg.conn_cfg.params.gap_conn_cfg.conn_count = _prph_count;
|
||||
blecfg.conn_cfg.params.gap_conn_cfg.event_length = _sd_cfg.prph.event_len;
|
||||
blecfg.conn_cfg.params.gap_conn_cfg.event_length = Gap._cfg_prph.event_len;
|
||||
VERIFY_STATUS ( sd_ble_cfg_set(BLE_CONN_CFG_GAP, &blecfg, ram_start) );
|
||||
|
||||
// HVN queue size
|
||||
varclr(&blecfg);
|
||||
blecfg.conn_cfg.conn_cfg_tag = CONN_CFG_PERIPHERAL;
|
||||
blecfg.conn_cfg.params.gatts_conn_cfg.hvn_tx_queue_size = _sd_cfg.prph.hvn_tx_qsize;
|
||||
blecfg.conn_cfg.params.gatts_conn_cfg.hvn_tx_queue_size = Gap._cfg_prph.hvn_tx_qsize;
|
||||
VERIFY_STATUS ( sd_ble_cfg_set(BLE_CONN_CFG_GATTS, &blecfg, ram_start) );
|
||||
|
||||
// WRITE COMMAND queue size
|
||||
varclr(&blecfg);
|
||||
blecfg.conn_cfg.conn_cfg_tag = CONN_CFG_PERIPHERAL;
|
||||
blecfg.conn_cfg.params.gattc_conn_cfg.write_cmd_tx_queue_size = _sd_cfg.prph.wr_cmd_qsize;
|
||||
blecfg.conn_cfg.params.gattc_conn_cfg.write_cmd_tx_queue_size = Gap._cfg_prph.wr_cmd_qsize;
|
||||
VERIFY_STATUS ( sd_ble_cfg_set(BLE_CONN_CFG_GATTC, &blecfg, ram_start) );
|
||||
}
|
||||
|
||||
@@ -362,26 +324,26 @@ err_t AdafruitBluefruit::begin(uint8_t prph_count, uint8_t central_count)
|
||||
// ATT MTU
|
||||
varclr(&blecfg);
|
||||
blecfg.conn_cfg.conn_cfg_tag = CONN_CFG_CENTRAL;
|
||||
blecfg.conn_cfg.params.gatt_conn_cfg.att_mtu = _sd_cfg.central.mtu_max;
|
||||
blecfg.conn_cfg.params.gatt_conn_cfg.att_mtu = Gap._cfg_central.mtu_max;
|
||||
VERIFY_STATUS ( sd_ble_cfg_set(BLE_CONN_CFG_GATT, &blecfg, ram_start) );
|
||||
|
||||
// Event length and max connection for this config
|
||||
varclr(&blecfg);
|
||||
blecfg.conn_cfg.conn_cfg_tag = CONN_CFG_CENTRAL;
|
||||
blecfg.conn_cfg.params.gap_conn_cfg.conn_count = _central_count;
|
||||
blecfg.conn_cfg.params.gap_conn_cfg.event_length = _sd_cfg.central.event_len;
|
||||
blecfg.conn_cfg.params.gap_conn_cfg.event_length = Gap._cfg_central.event_len;
|
||||
VERIFY_STATUS ( sd_ble_cfg_set(BLE_CONN_CFG_GAP, &blecfg, ram_start) );
|
||||
|
||||
// HVN queue size
|
||||
varclr(&blecfg);
|
||||
blecfg.conn_cfg.conn_cfg_tag = CONN_CFG_CENTRAL;
|
||||
blecfg.conn_cfg.params.gatts_conn_cfg.hvn_tx_queue_size = _sd_cfg.central.hvn_tx_qsize;
|
||||
blecfg.conn_cfg.params.gatts_conn_cfg.hvn_tx_queue_size = Gap._cfg_central.hvn_tx_qsize;
|
||||
VERIFY_STATUS ( sd_ble_cfg_set(BLE_CONN_CFG_GATTS, &blecfg, ram_start) );
|
||||
|
||||
// WRITE COMMAND queue size
|
||||
varclr(&blecfg);
|
||||
blecfg.conn_cfg.conn_cfg_tag = CONN_CFG_CENTRAL;
|
||||
blecfg.conn_cfg.params.gattc_conn_cfg.write_cmd_tx_queue_size = _sd_cfg.central.wr_cmd_qsize;
|
||||
blecfg.conn_cfg.params.gattc_conn_cfg.write_cmd_tx_queue_size = Gap._cfg_central.wr_cmd_qsize;
|
||||
VERIFY_STATUS ( sd_ble_cfg_set(BLE_CONN_CFG_GATTC, &blecfg, ram_start) );
|
||||
}
|
||||
|
||||
@@ -660,19 +622,19 @@ void AdafruitBluefruit::printInfo(void)
|
||||
|
||||
Serial.print(" - ");
|
||||
Serial.printf(title_fmt, "Max MTU");
|
||||
Serial.println(_sd_cfg.prph.mtu_max);
|
||||
Serial.println(Gap._cfg_prph.mtu_max);
|
||||
|
||||
Serial.print(" - ");
|
||||
Serial.printf(title_fmt, "Event Length");
|
||||
Serial.println(_sd_cfg.prph.event_len);
|
||||
Serial.println(Gap._cfg_prph.event_len);
|
||||
|
||||
Serial.print(" - ");
|
||||
Serial.printf(title_fmt, "HVN Queue Size");
|
||||
Serial.println(_sd_cfg.prph.hvn_tx_qsize);
|
||||
Serial.println(Gap._cfg_prph.hvn_tx_qsize);
|
||||
|
||||
Serial.print(" - ");
|
||||
Serial.printf(title_fmt, "WrCmd Queue Size");
|
||||
Serial.println(_sd_cfg.prph.wr_cmd_qsize);
|
||||
Serial.println(Gap._cfg_prph.wr_cmd_qsize);
|
||||
}
|
||||
|
||||
if ( _central_count )
|
||||
@@ -681,19 +643,19 @@ void AdafruitBluefruit::printInfo(void)
|
||||
|
||||
Serial.print(" - ");
|
||||
Serial.printf(title_fmt, "Max MTU");
|
||||
Serial.println(_sd_cfg.central.mtu_max);
|
||||
Serial.println(Gap._cfg_central.mtu_max);
|
||||
|
||||
Serial.print(" - ");
|
||||
Serial.printf(title_fmt, "Event Length");
|
||||
Serial.println(_sd_cfg.central.event_len);
|
||||
Serial.println(Gap._cfg_central.event_len);
|
||||
|
||||
Serial.print(" - ");
|
||||
Serial.printf(title_fmt, "HVN Queue Size");
|
||||
Serial.println(_sd_cfg.central.hvn_tx_qsize);
|
||||
Serial.println(Gap._cfg_central.hvn_tx_qsize);
|
||||
|
||||
Serial.print(" - ");
|
||||
Serial.printf(title_fmt, "WrCmd Queue Size");
|
||||
Serial.println(_sd_cfg.central.wr_cmd_qsize);
|
||||
Serial.println(Gap._cfg_central.wr_cmd_qsize);
|
||||
}
|
||||
#endif
|
||||
|
||||
|
||||
@@ -129,18 +129,12 @@ class AdafruitBluefruit
|
||||
void configUuid128Count (uint8_t uuid128_max);
|
||||
void configAttrTableSize (uint32_t attr_table_size);
|
||||
|
||||
// Bandwidth affection function
|
||||
// Bandwidth config for connections
|
||||
void configPrphConn (uint16_t mtu_max, uint8_t event_len, uint8_t hvn_qsize, uint8_t wrcmd_qsize);
|
||||
void configCentralConn (uint16_t mtu_max, uint8_t event_len, uint8_t hvn_qsize, uint8_t wrcmd_qsize);
|
||||
|
||||
err_t begin(uint8_t prph_count = 1, uint8_t central_count = 0);
|
||||
|
||||
/*------------- Config Retrieval -------------*/
|
||||
uint16_t getMaxMtu(void);
|
||||
uint8_t getHvnTxQueue (void);
|
||||
uint8_t getWriteCmdQueue(void);
|
||||
|
||||
|
||||
/*------------------------------------------------------------------*/
|
||||
/* General Functions
|
||||
*------------------------------------------------------------------*/
|
||||
@@ -204,13 +198,6 @@ class AdafruitBluefruit
|
||||
uint32_t attr_table_size;
|
||||
uint8_t service_changed;
|
||||
uint8_t uuid128_max;
|
||||
|
||||
struct {
|
||||
uint16_t mtu_max;
|
||||
uint8_t event_len;
|
||||
uint8_t hvn_tx_qsize;
|
||||
uint8_t wr_cmd_qsize;
|
||||
}prph, central;
|
||||
}_sd_cfg;
|
||||
|
||||
uint8_t _prph_count;
|
||||
|
||||
@@ -160,7 +160,7 @@ void BLEUart::bufferTXD(uint8_t enable)
|
||||
if ( _tx_fifo == NULL )
|
||||
{
|
||||
_tx_fifo = new Adafruit_FIFO(1);
|
||||
_tx_fifo->begin( Bluefruit.getMaxMtu() );
|
||||
_tx_fifo->begin( Bluefruit.Gap.getMaxMtuByConnCfg(CONN_CFG_PERIPHERAL) );
|
||||
}
|
||||
}else
|
||||
{
|
||||
@@ -178,11 +178,13 @@ err_t BLEUart::begin(void)
|
||||
// Invoke base class begin()
|
||||
VERIFY_STATUS( BLEService::begin() );
|
||||
|
||||
uint16_t max_mtu = Bluefruit.Gap.getMaxMtuByConnCfg(CONN_CFG_PERIPHERAL);
|
||||
|
||||
// Add TXD Characteristic
|
||||
_txd.setProperties(CHR_PROPS_NOTIFY);
|
||||
// TODO enable encryption when bonding is enabled
|
||||
_txd.setPermission(SECMODE_OPEN, SECMODE_NO_ACCESS);
|
||||
_txd.setMaxLen( Bluefruit.getMaxMtu() );
|
||||
_txd.setMaxLen( max_mtu );
|
||||
_txd.setUserDescriptor("TXD");
|
||||
VERIFY_STATUS( _txd.begin() );
|
||||
|
||||
@@ -192,7 +194,7 @@ err_t BLEUart::begin(void)
|
||||
|
||||
// TODO enable encryption when bonding is enabled
|
||||
_rxd.setPermission(SECMODE_NO_ACCESS, SECMODE_OPEN);
|
||||
_rxd.setMaxLen( Bluefruit.getMaxMtu() );
|
||||
_rxd.setMaxLen( max_mtu );
|
||||
_rxd.setUserDescriptor("RXD");
|
||||
VERIFY_STATUS(_rxd.begin());
|
||||
|
||||
|
||||
Reference in new issue
Block a user