Docs

Embed: (wiki syntax)

« Back to documentation index

Show/hide line numbers Beva.h Source File

Beva.h

00001 #include "stdio.h"
00002 #include "string.h"
00003 
00004 #pragma warning(disable : 4996)
00005 
00006 #ifndef _INC_BEVA
00007 #define _INC_BEVA
00008 
00009 /** A digital output, used for setting the state of a pin
00010  *
00011  * @note Synchronization level: Interrupt safe
00012  *
00013  * Example:
00014  * @code
00015  * // Toggle a LED
00016  * #include "mbed.h"
00017  *
00018  * DigitalOut led(LED1);
00019  *
00020  * int main() {
00021  *    while (1) {
00022  *        led = !led;
00023  *        printf("Blink! LED is now %d\n", led.read());
00024  *        eva.eingabe();
00025  *        eva.ausgabe();
00026  *      wait_ms(500);
00027  *    }
00028  * }
00029  * @endcode
00030  * @ingroup drivers
00031  */
00032 
00033 class Beva {
00034 private:        // Memebervariable
00035     char str[80];
00036 public:         // Methoden
00037     Beva() {    // Standard-Konstruktor
00038         strcpy(str, "InitString");  // Initialisieren der  Memebervariable
00039     }
00040     // Überladene parametrisierte Konstruktor
00041     Beva(char _str[]) {
00042         strcpy(str, _str);
00043     }
00044     void eingabe(void);
00045     void ausgabe(void);
00046 };
00047 #endif