Firmware description UM1619
46/56 DocID024383 Rev 1
6.6.7 Embedded module features APIs
The PLM module has some embedded features which can be used by the user, some other
are instead managed directly by the application engine.
/* General purpose input pins status get */
uint8_t DH_GetInputs(void)
/* General purpose global output pins value change (bit x = 1 -> out x = 1) */
void DH_SetOutputs(uint8_t outbuffer)
/* General purpose single output pin value change (PinVal = 1 -> out value = set) */
void DH_SetOutput_N(uint8_t out, BitAction PinVal)
/* Module system time clock value set and get (3 bytes buffer: h:m:s) */
void DH_GetSysTime(uint8_t *timebuffer)
bool DH_SetSysTime(uint8_t *timebuffer)
/* Delay in milliseconds function (main loop blocking) */
void DH_Delay_ms(uint16_t ms)
/* Get the system timestamp */
uint32_t DH_Timestamp(void)
/* Delay elapsed check function (milliseconds, max 60 sec comparison) */
bool DH_DelayElapsed(uint32_t tstp, uint16_t ms)
/* Timeout management (1 second <= sec <= 65536 seconds) */
void DH_SetTimeout(uint16_t sec)
bool DH_TimeoutElapsed(void)
/* LED management */
void DH_FlashLED(DH_LedType_t nLTy, DH_LedAction_t nLAct)
void DH_ShowLED(DH_LedType_t nLTy, DH_LedAction_t nLAct)