Fixed multiple bugs and errors.

- Added WARNING handler
- put voltage calculations to dedicated module

fixed last errors. Updated menu repair screen without ERROR from PID 

This is version 0.9.0.3, which is used for the first duration test
Will also be tagged

git-svn-id: https://svn.vbchaos.nl/svn/hsb/trunk@272 05563f52-14a8-4384-a975-3d1654cca0fa
This commit is contained in:
mmi
2017-11-15 15:40:39 +00:00
parent 17207a3a4b
commit 711f8e72be
46 changed files with 2572 additions and 454 deletions

View File

@@ -31,25 +31,93 @@
// Include files
// -----------------------------------------------------------------------------
#include <stdbool.h>
#include "stm32f10x.h"
// -----------------------------------------------------------------------------
// Constant and macro definitions
// -----------------------------------------------------------------------------
#define PIN_NUMBER_OF_DIGITS (4)
// -----------------------------------------------------------------------------
// Type definitions.
// -----------------------------------------------------------------------------
struct PIN
{
char firstDigit;
char secondDigit;
char thirdDigit;
char fourthDigit;
char pinchangeFirstInsert[5];
char pinchangeSecondInsert[5];
};
// -----------------------------------------------------------------------------
// Type definitions.
// -----------------------------------------------------------------------------
// -----------------------------------------------------------------------------
// Function declarations
// -----------------------------------------------------------------------------
/** ----------------------------------------------------------------------------
* PIN_generateDefaultPIN
* Description of function
*
* @param self
* @param
* @return void
*
* @todo
* -----------------------------------------------------------------------------
*/
extern void PIN_generateDefaultPIN(struct PIN* self);
/** ----------------------------------------------------------------------------
* PIN_isOK
* Description of function
*
* @param self
* @param PinToVerify
* @return bool
*
* @todo
* -----------------------------------------------------------------------------
*/
extern bool PIN_isOK(struct PIN* self, char* const pin);
/** ----------------------------------------------------------------------------
* PIN_changePinFirstInsert
* Transmits the first PIN insertion in order to change the current PIN
*
* @param self
* @param firstPinInsert
* @return void
*
* @todo
* -----------------------------------------------------------------------------
*/
extern void PIN_changePinFirstInsert(struct PIN* self, char* const firstPinInsert);
/** ----------------------------------------------------------------------------
* PIN_changePinSecondInsert
* transmits the second PIN insertion in order to change the current PIN.
* Only accepts second insert after first insert has been called. Afterwards,
* both inserts a compared. If equal, the new PIN is registered. Otherwise an
* error message is generated
*
* @param self
* @param firstPinInsert
* @return ErrorStatus SUCCESS if both PIN inserts are equal
* ERROR otherwise
*
* @todo
* -----------------------------------------------------------------------------
*/
extern ErrorStatus PIN_changePinSecondInsert(struct PIN* self, char* const secondPinInsert);
#endif /* PIN_H_ */