osdep.h
Go to the documentation of this file.
00001 #ifndef _OSDEP_H
00002 #define _OSDEP_H
00003 
00011 /*
00012  * Copyright (c) 2010 ThingMagic, Inc.
00013  *
00014  * Permission is hereby granted, free of charge, to any person obtaining a copy
00015  * of this software and associated documentation files (the "Software"), to deal
00016  * in the Software without restriction, including without limitation the rights
00017  * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
00018  * copies of the Software, and to permit persons to whom the Software is
00019  * furnished to do so, subject to the following conditions:
00020  *
00021  * The above copyright notice and this permission notice shall be included in
00022  * all copies or substantial portions of the Software.
00023  * 
00024  * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
00025  * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
00026  * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
00027  * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
00028  * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
00029  * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
00030  * THE SOFTWARE.
00031  */
00032 
00033 #include <stdint.h>
00034 
00035 #ifdef  __cplusplus
00036 extern "C" {
00037 #endif
00038 
00039 /* These are functions that must be provided for the library to operate */
00040 
00041   /*
00042   * Thing magic reader time objeect to reprejent the time stamp
00043   */
00044   typedef struct TMR_TimeStructure
00045   {
00046     uint32_t tm_sec;
00047     uint32_t tm_min;
00048     uint32_t tm_hour;
00049     uint32_t tm_mday;
00050     uint32_t tm_mon;
00051     uint32_t tm_year;
00052   }TMR_TimeStructure;
00053 
00054 /*
00055  * The time funcution used to return the current time in
00056  * thing magic time structure.
00057  */
00058 TMR_TimeStructure tmr_gettimestructure(void);
00059 
00060 uint64_t tmr_gettime(void);
00061 
00062 /* The time functions collectively return a 64-bit counter in units of
00063  * milliseconds. Both methods are used when timestamping events such
00064  * as tag reads. For controlling elapsed time, only the lower one is
00065  * used, so If your platform does not support more than 32 bits of
00066  * millisecond counting, returning 0 from the high method will not
00067  * cause problems internal to the library.
00068  */
00069 
00074 uint32_t tmr_gettime_low(void);
00075 
00080 uint32_t tmr_gettime_high(void);
00081 
00086 void tmr_sleep(uint32_t sleepms);
00087 
00088 #ifdef __cplusplus
00089 }
00090 #endif
00091 
00092 #endif /* _OSDEP_H */


thingmagic_rfid
Author(s): Brian Bingham
autogenerated on Thu May 16 2019 03:01:23