vision/main/board_svc.h

30 lines
671 B
C
Raw Blame History

This file contains ambiguous Unicode characters!

This file contains ambiguous Unicode characters that may be confused with others in your current locale. If your use case is intentional and legitimate, you can safely ignore this warning. Use the Escape button to highlight these characters.

#pragma once
#include <stdbool.h>
#include "esp_err.h"
#ifdef __cplusplus
extern "C" {
#endif
/*
* Camera / WiFi stay off at boot.
* Camera: I2C CMD 5=on, 6=off
* WiFi: write REG_WIFI_CRED (ssid+pass) to enable; CMD 8=off
* (CMD 7 still enables using last/NVS/default credentials)
*/
esp_err_t board_camera_set(bool enable);
esp_err_t board_wifi_set(bool enable);
esp_err_t board_wifi_set_credentials(const char *ssid, const char *password);
/* Match camera pixel format to local-vision needs (RGB565 vs JPEG). */
esp_err_t board_camera_sync_format(void);
bool board_camera_is_on(void);
bool board_wifi_is_on(void);
#ifdef __cplusplus
}
#endif