Main Page | Modules | File List | Globals

Time_Functions


Functions

void hemisson_delay_s (int Delay)
 This function stop program execution (but not the interrupts) during the defined time in second.

void hemisson_delay_ms (int Delay)
 This function stop program execution (but not the interrupts) during the defined time in millisecond.

void hemisson_delay_us (int Delay)
 This function stop program execution (but not the interrupts) during the defined time in microsecond.

unsigned int32 hemisson_get_time (void)
 This function return a 32 bits value which is increased every ms.

void hemisson_set_time (unsigned int32 Time)
 This function allow user to set the current time value.


Function Documentation

void hemisson_delay_ms int  Delay  ) 
 

This function stop program execution (but not the interrupts) during the defined time in millisecond.

Parameters:
Delay 1 to 255
Return values:
None 

Definition at line 352 of file hemisson.h.

00353 {
00354    delay_ms(Delay);
00355 }

void hemisson_delay_s int  Delay  ) 
 

This function stop program execution (but not the interrupts) during the defined time in second.

Parameters:
Delay 1 to 255
Return values:
None 

Definition at line 336 of file hemisson.h.

00337 {
00338    int i;
00339    for(i = 0; i< Delay; i++)
00340    {
00341       delay_ms(1000);
00342    }
00343 }

void hemisson_delay_us int  Delay  ) 
 

This function stop program execution (but not the interrupts) during the defined time in microsecond.

Parameters:
Delay 1 to 255
Return values:
None 

Definition at line 364 of file hemisson.h.

00365 {
00366    delay_us(Delay);
00367 }

unsigned int32 hemisson_get_time void   ) 
 

This function return a 32 bits value which is increased every ms.

Parameters:
None 
Return values:
unsigned int32 time value

Definition at line 376 of file hemisson.h.

References __TimeTip.

00377 {
00378    return __TimeTip;
00379 }

void hemisson_set_time unsigned int32  time  ) 
 

This function allow user to set the current time value.

Parameters:
unsigned int32 time
Return values:
None 

Definition at line 388 of file hemisson.h.

References __TimeTip.

00389 {
00390    __TimeTip = Time;
00391 }


Generated on Mon Feb 23 23:53:23 2004 for HemiOs by doxygen 1.3.4