This commit is contained in:
Edward Emelianov
2025-09-23 22:25:07 +03:00
parent 2465cd9bd4
commit 02c6bd124f
9 changed files with 175 additions and 114 deletions

View File

@@ -22,6 +22,9 @@
#include "mlx90640.h"
// amount of sensors processing
#define N_SESORS (5)
// maximal errors number to stop processing
#define MLX_MAX_ERRORS (11)
// if there's no new data by this time - reset bus
@@ -35,14 +38,14 @@ typedef enum{
MLX_RELAX // do nothing - pause
} mlx_state_t;
int mlx_setaddr(uint8_t addr);
int mlx_setaddr(int n, uint8_t addr);
mlx_state_t mlx_state();
int mlx_nactive();
void mlx_pause();
void mlx_stop();
void mlx_continue();
void mlx_process();
int mlx_getparams(MLX90640_params *pars);
fp_t *mlx_getimage(uint32_t *Tgot);
int mlx_setresolution(uint8_t newresol);
uint8_t mlx_getresolution();
int mlx_sethwaddr(uint8_t addr);
uint32_t mlx_lastimT();
int mlx_getparams(int sensno, MLX90640_params *pars);
fp_t *mlx_getimage(int sensno);
int mlx_sethwaddr(uint8_t MLX_address, uint8_t addr);
uint32_t mlx_lastimT(int sensno);