Feature/arbitrary apdu application (#580)

* Added application to send an arbitrary APDU string of hex-ASCII
This commit is contained in:
Steve Karg
2024-02-23 09:24:05 -06:00
committed by GitHub
parent fd2c49bf65
commit 33c7df249a
7 changed files with 522 additions and 1 deletions
+15
View File
@@ -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
*
+2
View File
@@ -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);