| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354 |
- /*
- * AppBridge.h
- *
- * Created on: Mar 3, 2025
- * Author: juraj
- */
- #include "inttypes.h"
- #include "dataframe.h"
- #if defined(STM32F401xC) || defined(STM32F401xE)
- #include "stm32f4xx_hal.h"
- #endif
- #if defined (STM32L432xx)
- #include "stm32l4xx_hal.h"
- #endif
- #if defined (STM32L031xx) || defined (STM32L082xx)
- #include "stm32l0xx_hal.h"
- #endif
- #ifndef SRC_APPSLAVE_H_
- #define SRC_APPSLAVE_H_
- class UbusSlave {
- private:
- uint8_t _address;
- uint8_t _data_packet[32];
- DataFrame *_packet;
- UART_HandleTypeDef *_uartUbus;
- void transmit(uint8_t);
- public:
- UbusSlave(uint8_t, UART_HandleTypeDef *);
- void ubus_echo();
- virtual ~UbusSlave();
- };
- #ifdef __cplusplus
- extern "C"
- {
- #endif
- #ifdef __cplusplus
- }
- #endif
- #endif /* SRC_APPSLAVE_H_ */
|