Display Steuerung für Lampen per Relais. https://www.youtube.com/watch?v=_CupBMcZ8Xc
Dependencies: BSP_DISCO_F746NG F746_GUI LCD_DISCO_F746NG TS_DISCO_F746NG mbed
Diff: relay.h
- Revision:
- 1:f316de154ff7
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/relay.h Sun Apr 23 17:15:53 2017 +0000 @@ -0,0 +1,52 @@ +#ifndef __RELAY_H +#define __RELAY_H +/*============================================================================================= + section 1 - includes + ==============================================================================================*/ + +/*============================================================================================= + section 2 - public defines / enumerations + ==============================================================================================*/ +enum E_RELAY_LIGHT { + RELAY_LIGHT1, + RELAY_LIGHT2 +}; + +/*============================================================================================= + section 3 - public typedefs + ==============================================================================================*/ + +/*============================================================================================= + section 4 - public macros + ==============================================================================================*/ + +/*============================================================================================= + section 5 - public constants declaration + ==============================================================================================*/ + +/*============================================================================================= + section 6 - public variables declaration + ==============================================================================================*/ +extern DigitalOut g_light1Fet1; +extern DigitalOut g_light1Fet2; +extern DigitalOut g_light2Fet1; +extern DigitalOut g_light2Fet2; + +/*============================================================================================= + section 7 - public functions - declaration + ==============================================================================================*/ +/* init function */ +void relay_init(void); + +/* getter functions */ + +/* setter functions */ + +/* other functions */ +void relay_switch(E_RELAY_LIGHT lightNumber); +void relay_task(void); + +#endif /* __RELAY_H */ +/*============================================================================================= + end of file + ==============================================================================================*/ \ No newline at end of file