Netcruzer Library API
V2.03
All
Data Structures
Files
Functions
Variables
Typedefs
Enumerations
Macros
Groups
Pages
nz_tickCx.h
Go to the documentation of this file.
1
29
43
114
#ifndef _NZ_TICK_CX_H_
115
#define _NZ_TICK_CX_H_
116
117
#if !defined(NZSYS_DONT_MANAGE_TICK)
118
119
#include "
nz_tick.h
"
120
122
// 16-bit, 256ms tick functions
124
131
WORD
tick16Get_256ms
(
void
);
132
134
#define getTick16bit_256ms() tick16Get_256ms()
135
136
143
BOOL
tick16HasExpired_256ms
(WORD v);
144
145
154
#define tick16Update_256ms(tmr, msVal) (tmr += msVal)
155
156
157
159
// 8-bit, 1ms tick functions
161
165
#define tick8Get_1ms() (tick_val.v[0])
166
167
172
#define tick8HasExpired_1ms(v) ((v - TICK.v[0]) & 0x80)
173
174
176
// 8-bit, 16ms tick functions
178
184
BYTE
tick8Get_16ms
(
void
);
185
186
193
#define tick8HasExpired_16ms(v) ((v - ((UINT8)(tick_val.w[0]>>4))) & 0x80)
194
195
197
// 8-bit, 256ms tick functions
199
204
#define tick8Get_256ms() (tick_val.v[1])
205
206
#endif //#if !defined(NZSYS_DONT_MANAGE_TICK)
207
#endif //end of #define _NZ_TICK_CX_H_
netcruzer
lib
nz_tickCx.h
Generated on Tue Dec 9 2014 15:08:19 for Netcruzer Library API by
1.8.4