Legacy branch migration
This commit is contained in:
30
firmware/drivers/output.h
Normal file
30
firmware/drivers/output.h
Normal file
@@ -0,0 +1,30 @@
|
||||
#ifndef OUTPUT_DRV_H_
|
||||
#define OUTPUT_DRV_H_
|
||||
|
||||
/**** Includes ****/
|
||||
#include <avr/io.h>
|
||||
#include "../devices/analog.h"
|
||||
#include "../devices/halfbridge.h"
|
||||
|
||||
/**** Public definitions ****/
|
||||
typedef enum {
|
||||
F_NONE,
|
||||
F_ACTIVE,
|
||||
F_COOLDOWN
|
||||
} faultState_t;
|
||||
|
||||
typedef enum {
|
||||
O_OFF,
|
||||
O_ACTIVE,
|
||||
O_FAULTED
|
||||
} outState_t;
|
||||
|
||||
/**** Public function declarations ****/
|
||||
void Output_Enable(void);
|
||||
void Output_Update(analog_t* meas);
|
||||
|
||||
void Output_SetTarget(uint16_t voltage);
|
||||
|
||||
outState_t Output_GetOutputState(void);
|
||||
|
||||
#endif /* OUTPUT_DRV_H_ */
|
||||
Reference in New Issue
Block a user