Implement first draft of working DMX. Still needs rework and beatifying

This commit is contained in:
2022-06-24 19:43:00 +02:00
parent d06b2b7eaf
commit 60f1923abe
3 changed files with 114 additions and 36 deletions

View File

@@ -34,4 +34,16 @@ void dmx_init(uint32_t base_channel);
*/
const uint8_t *dmx_get_data(void);
/**
* @brief Check if a break was received. This resets the flag
* @return true if a break was received since the last time calling this function
*/
bool dmx_poll_break_received(void);
/**
* @brief The DMX receiver has received all data for the ring light. It can be read
* @return
*/
bool dmx_enough_data_received(void);
#endif /* _DMX_H_ */