hurricane/arducam/common.h

/*******************************************************************************
* # License
* Copyright 2019 Silicon Laboratories Inc. www.silabs.com
*******************************************************************************
*
* The licensor of this software is Silicon Laboratories Inc. Your use of this
* software is governed by the terms of Silicon Labs Master Software License
* Agreement (MSLA) available at
* www.silabs.com/about-us/legal/master-software-license-agreement. This
* software is distributed to you in Source Code format and is governed by the
* sections of the MSLA applicable to Source Code.
*
******************************************************************************/
#pragma once
#include "gos.h"
#include "arducam.h"
#include "hurricane.h"
#define MAX_CLIENT_COUNT 5
typedef struct
{
int32_t setting[ARDUCAM_SETTING_MAX];
} hurricane_camera_settings_t;
extern hurricane_camera_settings_t* camera_settings;
extern uint8_t client_count;
gos_result_t network_init(void);
gos_result_t camera_init(void);
void camera_set_video_enabled(bool enabled);
void camera_broadcast_settings_to_all_clients(void);
gos_result_t settings_init(void);
gos_result_t settings_save(void);