#ifndef __SYS_BSP_H__
#define __SYS_BSP_H__

void sys_Set_LED(int LEDID, int on);
void sys_Set_SSR(int idx, int on);

int sys_Get_FanFBA(void);
int sys_Get_FanFBB(void);
int sys_Get_FanFBC(void);

int sys_Get_LGPTFA(void);
int sys_Get_LGPTFB(void);

int sys_Get_WATFB(void);
int sys_Get_GATFB(void);
int sys_Get_EMGFB(void);
int sys_Get_SMOKE(void);
int sys_Get_POWERLOSS(void);
void sys_POWER_Heartbeat(void);
void sys_TCULED_Heartbeat(void);
void sys_CCULED_Heartbeat(void);
void sys_PCULED_Heartbeat(void);

int sys_Set_KMD(int idx, int on);
int sys_Get_KMD(int idx);

int sys_Set_PWM(int idx, int ratio);
int sys_Get_PWMFB(int idx);

float sys_Get_BOX_Temp(int idx);
float sys_Get_GUN_Temp(int idx);
int sys_Get_NFC_CardID(void* self, int timeout, char* card_id);

void sys_Read_DCMeterA(void *self, float* VMeter, float* IMeter, float* PMeter, float* EMeter);
void sys_Read_DCMeterB(void *self, float* VMeter, float* IMeter, float* PMeter, float* EMeter);
void sys_set_DCGroundA_state(void* self, int onoff);
void sys_set_DCGroundB_state(void* self, int onoff);
void sys_Read_DCGroundA(void *self, float* VGround, float* RGround);
void sys_Read_DCGroundB(void *self, float* VGround, float* RGround);

int sys_BSP_init(void);
void sys_BSP_exit(void);

#endif//__SYS_BSP_H__
