Added abort to error code conversion. Added unit test. (#20)

* Added abort to error code conversion. Added unit test.

* add javadoc header to new function.
This commit is contained in:
Steve Karg
2020-01-15 14:50:16 -06:00
committed by GitHub
parent 6e0ebb99f4
commit 0f82748413
3 changed files with 97 additions and 13 deletions
+2 -7
View File
@@ -34,6 +34,8 @@ extern "C" {
BACNET_ABORT_REASON abort_convert_error_code(
BACNET_ERROR_CODE error_code);
BACNET_ERROR_CODE abort_convert_to_error_code(
BACNET_ABORT_REASON abort_code);
int abort_encode_apdu(
uint8_t * apdu,
@@ -49,13 +51,6 @@ extern "C" {
#ifdef TEST
#include "ctest.h"
int abort_decode_apdu(
uint8_t * apdu,
unsigned apdu_len,
uint8_t * invoke_id,
uint8_t * abort_reason,
bool * server);
void testAbort(
Test * pTest);
#endif