clock

Dependencies:   mbed

myScope/mybc95.h

Committer:
donghuoyinzi
Date:
2018-05-08
Revision:
0:17e9016529cf
Child:
1:013b9fdc4e78

File content as of revision 0:17e9016529cf:

#include "mbed.h"
#include "string"
    
#include "myf401.h"
#include "myknow.h"

#ifndef mybc95_H
#define mybc95_H

    class bc95Act
    {
        public:
            static void init(void);                    // initialization of bc95
            static void start(void);                        // initialization of start
            static void data(void);                         // initialization of data
            static void ready(void);
            static void revok(void);
            static void get_tim(void); 
            static void get_knw(void);
            static void put(void);  

        private:
            static void jump_Judg(int Chekstep,int Nexnexstep);
            static void CheckOK(int Nexstp,int Lastp,int maxstp);            //check 'ok' 
            static void getISR(void);                                    //get interrupt buffer

            static void setrtc(void);
            static void changdate(void);
            static uint32_t changsec(void);
            static uint8_t Is_Leap_Year(uint16_t year);

            static int stpSe;
            static int cnt;
            static int cntche;
            static int cntlink;
            
            static int year;
            static int mon;
            static int day;
            static int hour;
            static int min;
            static int sec;

            static char buf[50];                                           // receive buffer
   };
   
#endif