Go to the documentation of this file.
6 #if defined(ARDUINO) && ARDUINO >= 100
28 virtual bool I2CRead(
t_i2cdevices device, uint8_t* wbuffer,
int wlength, uint8_t* rbuffer,
int rlength,
bool stop);
33 virtual void __delay_blocking_ms(uint32_t ms);
37 virtual uint64_t GetMillis();
38 virtual int64_t Get_dT_millis(uint64_t ms);
bool Init()
Initialize hardware peripheral in the system.
void PrintLineDebugConsole(String s)
Print a message on console used for Debug with a CR+LR at end.
uint16_t GetSupervisorAlarms()
API return Supervisor managed alarms.
bool I2CRead(t_i2cdevices device, uint8_t *wbuffer, int wlength, uint8_t *rbuffer, int rlength, bool stop)
Write buffer to I2C bus and read data.
String ReadUART0UntilEOL()
Return a terminated string from communication interface.
void PrintDebugConsole(String s)
Print a message on console used for Debug.
bool I2CWrite(t_i2cdevices device, uint8_t *wbuffer, int wlength, bool stop)
Write buffer to I2C bus.
bool WriteUART0(String s)
API to write a string to the communication interfaces.
void Tick()
Tick function must be called periodically.
void GetPowerStatus(bool *batteryPowered, float *charge)
API to read battery charge and power supply status.
float GetPIN()
API return pressure on input of MVM.
Driver for the Nuclear Instruments V4 Hardware Board.
float GetBoardTemperature()
API return temperature of the board.
bool DataAvailableOnUART0()
API to read if on the communication interfaces there are bytes to be read.
bool PWMSet(hw_pwm id, float value)
Control PWM device (PV1)
bool IOSet(hw_gpio id, bool value)
Set a GPIO Status (IE Control PV6, Alarms, etc)
bool IOGet(hw_gpio id, bool *value)
Get GPIO Status.