bugfixes & use new lwip mempool for FreeRTOS lwip
This commit is contained in:
@@ -17,9 +17,9 @@ class TmTcLwIpUdpBridge : public TmTcBridge {
|
||||
public:
|
||||
TmTcLwIpUdpBridge(object_id_t objectId, object_id_t ccsdsPacketDistributor,
|
||||
object_id_t tmStoreId, object_id_t tcStoreId);
|
||||
virtual ~TmTcLwIpUdpBridge();
|
||||
~TmTcLwIpUdpBridge() override;
|
||||
|
||||
virtual ReturnValue_t initialize() override;
|
||||
ReturnValue_t initialize() override;
|
||||
ReturnValue_t udp_server_init();
|
||||
|
||||
/**
|
||||
@@ -27,14 +27,14 @@ public:
|
||||
* @param operationCode
|
||||
* @return
|
||||
*/
|
||||
virtual ReturnValue_t performOperation(uint8_t operationCode = 0) override;
|
||||
ReturnValue_t performOperation(uint8_t operationCode) override;
|
||||
|
||||
/** TM Send implementation uses udp_send function from lwIP stack
|
||||
* @param data
|
||||
* @param dataLen
|
||||
* @return
|
||||
*/
|
||||
virtual ReturnValue_t sendTm(const uint8_t *data, size_t dataLen) override;
|
||||
ReturnValue_t sendTm(const uint8_t *data, size_t dataLen) override;
|
||||
|
||||
/**
|
||||
* @brief This function is called when an UDP datagram has been
|
||||
@@ -54,11 +54,11 @@ public:
|
||||
* Caller must ensure thread-safety by using the bridge lock.
|
||||
* @return
|
||||
*/
|
||||
bool comLinkUp() const;
|
||||
[[nodiscard]] bool comLinkUp() const;
|
||||
|
||||
private:
|
||||
struct udp_pcb *upcb = nullptr;
|
||||
ip_addr_t lastAdd;
|
||||
ip_addr_t lastAdd{};
|
||||
u16_t lastPort = 0;
|
||||
bool physicalConnection = false;
|
||||
MutexIF *bridgeLock = nullptr;
|
||||
|
||||
Reference in New Issue
Block a user