PicoScenes API Docs
 
Loading...
Searching...
No Matches
MAC80211CSIExtractableFrontEnd.hxx
Go to the documentation of this file.
1//
2// Created by Zhiping Jiang on 9/15/21.
3//
4
5#ifndef PICOSCENES_PLATFORM_MAC80211CSIEXTRACTABLEFRONTEND_HXX
6#define PICOSCENES_PLATFORM_MAC80211CSIEXTRACTABLEFRONTEND_HXX
7
9
11public:
13
14 int startRx() override {
15 if (csiPathPointer > 0) {
16 rxServiceStarted = true;
18 return 0;
19 }
20
21 throw std::runtime_error("CSI data port of [" + getReferredInterfaceName() + "] is not properly opened.");
22 }
23
24 virtual void setFrameTypeFilter(const std::vector<uint8_t> &frameTypes) {
25 throw std::runtime_error(fmt::format("<{}> does not support operation: {}.", getReferredInterfaceName(), std::string(BOOST_CURRENT_FUNCTION)));
26 }
27
28protected:
30
32};
33
34
35#endif //PICOSCENES_PLATFORM_MAC80211CSIEXTRACTABLEFRONTEND_HXX
std::string referredInterfaceName
the user specified frontend name
bool rxServiceStarted
indicate whether Rx service loop is running
const std::string & getReferredInterfaceName() const
Get the user-specified frontend name.
MAC80211CSIExtractableFrontEnd(const std::string &referredInterfaceName)
virtual void setFrameTypeFilter(const std::vector< uint8_t > &frameTypes)
int startRx() override
Activiate the Rx service loop.
virtual void startCSIExtractionAndParsingLoop()=0