Feature/arbitrary apdu application (#580)
* Added application to send an arbitrary APDU string of hex-ASCII
This commit is contained in:
@@ -145,6 +145,21 @@ int mstimer_expired(struct mstimer *t)
|
||||
return 0;
|
||||
}
|
||||
/*---------------------------------------------------------------------------*/
|
||||
|
||||
/**
|
||||
* @brief Expire the timer from the current point in time
|
||||
*
|
||||
* This function expires a timer with the same interval that was
|
||||
* given to the mstimer_set() function.
|
||||
*
|
||||
* @param t A pointer to the timer.
|
||||
* @sa mstimer_reset()
|
||||
*/
|
||||
void mstimer_expire(struct mstimer *t)
|
||||
{
|
||||
t->start -= t->interval;
|
||||
}
|
||||
|
||||
/**
|
||||
* The time until the timer expires
|
||||
*
|
||||
|
||||
@@ -58,6 +58,8 @@ void mstimer_restart(struct mstimer *t);
|
||||
BACNET_STACK_EXPORT
|
||||
int mstimer_expired(struct mstimer *t);
|
||||
BACNET_STACK_EXPORT
|
||||
void mstimer_expire(struct mstimer *t);
|
||||
BACNET_STACK_EXPORT
|
||||
unsigned long mstimer_remaining(struct mstimer *t);
|
||||
BACNET_STACK_EXPORT
|
||||
unsigned long mstimer_elapsed(struct mstimer *t);
|
||||
|
||||
Reference in New Issue
Block a user