initial check in based on SVN revision 575
This commit is contained in:
41
source/psu_ctrl.h
Normal file
41
source/psu_ctrl.h
Normal file
@@ -0,0 +1,41 @@
|
||||
/*
|
||||
* psu_ctrl.h
|
||||
*
|
||||
* Created on: Mar 16, 2023
|
||||
* Author: Keith.Lloyd
|
||||
*/
|
||||
|
||||
#ifndef PSU_CTRL_H_
|
||||
#define PSU_CTRL_H_
|
||||
|
||||
#include <stdbool.h>
|
||||
#include <stdint.h>
|
||||
#include "arm_math.h"
|
||||
|
||||
#define MAX_BCAST_PSU 255
|
||||
#define MAIN_PSU_ENBL 0b00000100 // Active Low U13 D2
|
||||
#define V_18V 0
|
||||
#define V_21V 88
|
||||
|
||||
#define V_24V 118
|
||||
#define V_27V 148
|
||||
#define V_30V 171
|
||||
#define V_36V 218
|
||||
#define V_42V 250 // Clamp use only
|
||||
#define V_55V 255 // Actually 45.5V
|
||||
#define MAX_AB_PSU V_24V //TODO
|
||||
//#define MAX_AB_PSU V_36V //TODO
|
||||
|
||||
#define MAX_D_PSU V_36V
|
||||
#define MAX_CLAMP_PSU 255
|
||||
|
||||
typedef enum {
|
||||
DOWN = 0,
|
||||
UP = 1
|
||||
}DDS_DIR_t;
|
||||
|
||||
void Set_PSU_Voltage(uint8_t value);
|
||||
void Get_Max_PSU_Limit(void);
|
||||
bool Wait_For_Psu(float32_t volt_limit);
|
||||
// Set up Maximum voltage for PSU
|
||||
#endif /* PSU_CTRL_H_ */
|
||||
Reference in New Issue
Block a user