ESP8266 part of the f105-motor-demo project (see f105-motor-demo_stm32)
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
|
|
|
#ifndef DATALINK_H
|
|
|
|
#define DATALINK_H
|
|
|
|
|
|
|
|
#include <esp8266.h>
|
|
|
|
#include <sbmp.h>
|
|
|
|
|
|
|
|
#define DG_MOTOR_HOME 40
|
|
|
|
#define DG_MOTOR_GOTO 41
|
|
|
|
|
|
|
|
// wifi status & control
|
|
|
|
#define DG_SETMODE_AP 44 // request AP mode (AP button pressed)
|
|
|
|
#define DG_WPS_START 45 // start WPS
|
|
|
|
#define DG_WIFI_STATUS 46 // WiFi status report
|
|
|
|
|
|
|
|
#define DG_REQUEST_STM_VERSION 47 // Get acquisition module firmware version
|
|
|
|
|
|
|
|
extern SBMP_Endpoint *dlnk_ep;
|
|
|
|
|
|
|
|
void datalinkInit(void);
|
|
|
|
|
|
|
|
void datalink_receive(uint8_t byte);
|
|
|
|
|
|
|
|
#endif // DATALINK_H
|