mirror of
https://github.com/korneliuszo/lumiax-controller.git
synced 2026-06-25 12:31:53 +02:00
46 lines
643 B
C++
46 lines
643 B
C++
/*
|
|
* main_modules.hpp
|
|
*
|
|
* Created on: Aug 16, 2022
|
|
* Author: kosa
|
|
*/
|
|
|
|
#ifndef MAIN_MODULES_HPP_
|
|
#define MAIN_MODULES_HPP_
|
|
|
|
#include "tlay2.hpp"
|
|
#include "display.hpp"
|
|
|
|
#include <stdint.h>
|
|
#include <zephyr/kernel.h>
|
|
#include <zephyr/sys/atomic.h>
|
|
|
|
struct Reg_data {
|
|
struct Data {
|
|
uint16_t b_soc;
|
|
uint16_t b_v;
|
|
int16_t b_a;
|
|
uint16_t l_v;
|
|
uint16_t l_a;
|
|
uint16_t s_v;
|
|
uint16_t s_a;
|
|
bool on;
|
|
} d;
|
|
k_mutex mut;
|
|
k_sem new_sample;
|
|
};
|
|
|
|
extern struct Reg_data reg_data;
|
|
|
|
extern int client_iface;
|
|
|
|
extern Tlay2<128> tlay2;
|
|
|
|
extern Display display;
|
|
|
|
extern int client_iface;
|
|
|
|
extern atomic_t onoff;
|
|
|
|
#endif /* MAIN_MODULES_HPP_ */
|