git-svn-id: https://svn.vbchaos.nl/svn/hsb/trunk@418 05563f52-14a8-4384-a975-3d1654cca0fa
49 lines
1.2 KiB
C
49 lines
1.2 KiB
C
/* -----------------------------------------------------------------------------
|
|
* Observer.h (c) 2013 Micro-Key bv
|
|
* -----------------------------------------------------------------------------
|
|
* Micro-Key bv
|
|
* Industrieweg 28, 9804 TG Noordhorn
|
|
* Postbus 92, 9800 AB Zuidhorn
|
|
* The Netherlands
|
|
* Tel: +31 594 503020
|
|
* Fax: +31 594 505825
|
|
* Email: support@microkey.nl
|
|
* Web: www.microkey.nl
|
|
* -----------------------------------------------------------------------------
|
|
* Description: Observer design pattern
|
|
* -----------------------------------------------------------------------------
|
|
* $Id$
|
|
* -----------------------------------------------------------------------------
|
|
*/
|
|
|
|
/**
|
|
* Observer implementation
|
|
* \defgroup Observer Package Observer
|
|
* \ingroup HAL
|
|
* @{
|
|
*/
|
|
|
|
#ifndef _OBSERVER_H_
|
|
#define _OBSERVER_H_
|
|
|
|
/* --------------*
|
|
* Include files *
|
|
* --------------*
|
|
*/
|
|
|
|
#include "stm32f10x.h"
|
|
|
|
/* ------------------*
|
|
* Type definitions. *
|
|
* ------------------*
|
|
*/
|
|
|
|
/**
|
|
* The Observable class (which is a function pointer)
|
|
*/
|
|
typedef ErrorStatus (*Observer)(const void* const data);
|
|
|
|
#endif
|
|
|
|
/** @} */
|