add enable/disable command

This commit is contained in:
2026-04-14 09:28:06 +03:00
parent 56701d6ef6
commit c93c2ac6ab
7 changed files with 41 additions and 3 deletions

View File

@@ -92,6 +92,7 @@ typedef enum{
LENS_INITIALIZED, // initializing process
LENS_READY, // ready to operate
LENS_ERR, // some error occured - reconnect after REINIT_PAUSE
LENS_DISABLED, // powered off by command
LENS_S_AMOUNT
} lens_state;
@@ -109,6 +110,8 @@ typedef enum{
void canon_init();
void canon_proc();
void canon_disable();
void canon_enable();
int canon_diaphragm(char command);
int canon_focus(int16_t val);
int canon_sendcmd(uint8_t cmd);