ardupilot/libraries/AP_Networking/AP_Networking_PPP.h

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

31 lines
699 B
C
Raw Permalink Normal View History

2023-12-09 16:10:16 -04:00
#pragma once
#include "AP_Networking_Config.h"
#ifdef AP_NETWORKING_BACKEND_PPP
#include "AP_Networking_Backend.h"
class AP_Networking_PPP : public AP_Networking_Backend
{
public:
using AP_Networking_Backend::AP_Networking_Backend;
/* Do not allow copies */
CLASS_NO_COPY(AP_Networking_PPP);
bool init() override;
private:
void ppp_loop(void);
AP_HAL::UARTDriver *uart;
struct netif *pppif;
struct ppp_pcb_s *ppp;
bool need_restart;
2023-12-09 16:10:16 -04:00
static void ppp_status_callback(struct ppp_pcb_s *pcb, int code, void *ctx);
static uint32_t ppp_output_cb(struct ppp_pcb_s *pcb, const void *data, uint32_t len, void *ctx);
};
#endif // AP_NETWORKING_BACKEND_PPP