Created
May 15, 2017 21:10
-
-
Save peisenhower/196335b958bff27237bf21f8f2948c68 to your computer and use it in GitHub Desktop.
scratch heater interface
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| typedef enum | |
| { | |
| HEATER_COMMAND_SETUP, | |
| HEATER_COMMAND_SHUTDOWN, | |
| HEATER_COMMAND_ENABLE, | |
| HEATER_COMMAND_SETPOINT, | |
| } heater_command_t; | |
| void (*callback_func)(heater_command_t command, error_t result); | |
| typedef struct | |
| { | |
| heater_command_t command; | |
| uint32_t timeoutMs; | |
| callback_func callback; | |
| union { | |
| float setpoint; | |
| uint32_t enableMask; | |
| } | |
| } heater_queue_t; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment