Changed all the C++ comments to C comments using comment.sh script.
This commit is contained in:
+29
-29
@@ -50,37 +50,37 @@ typedef enum {
|
||||
TSM_STATE_SEGMENTED_CONFIRMATION
|
||||
} BACNET_TSM_STATE;
|
||||
|
||||
// 5.4.1 Variables And Parameters
|
||||
// The following variables are defined for each instance of
|
||||
// Transaction State Machine:
|
||||
/* 5.4.1 Variables And Parameters */
|
||||
/* The following variables are defined for each instance of */
|
||||
/* Transaction State Machine: */
|
||||
typedef struct BACnet_TSM_Data {
|
||||
// used to count APDU retries
|
||||
/* used to count APDU retries */
|
||||
uint8_t RetryCount;
|
||||
// used to count segment retries
|
||||
//uint8_t SegmentRetryCount;
|
||||
// used to control APDU retries and the acceptance of server replies
|
||||
//bool SentAllSegments;
|
||||
// stores the sequence number of the last segment received in order
|
||||
//uint8_t LastSequenceNumber;
|
||||
// stores the sequence number of the first segment of
|
||||
// a sequence of segments that fill a window
|
||||
//uint8_t InitialSequenceNumber;
|
||||
// stores the current window size
|
||||
//uint8_t ActualWindowSize;
|
||||
// stores the window size proposed by the segment sender
|
||||
//uint8_t ProposedWindowSize;
|
||||
// used to perform timeout on PDU segments
|
||||
//uint8_t SegmentTimer;
|
||||
// used to perform timeout on Confirmed Requests
|
||||
// in milliseconds
|
||||
/* used to count segment retries */
|
||||
/*uint8_t SegmentRetryCount; */
|
||||
/* used to control APDU retries and the acceptance of server replies */
|
||||
/*bool SentAllSegments; */
|
||||
/* stores the sequence number of the last segment received in order */
|
||||
/*uint8_t LastSequenceNumber; */
|
||||
/* stores the sequence number of the first segment of */
|
||||
/* a sequence of segments that fill a window */
|
||||
/*uint8_t InitialSequenceNumber; */
|
||||
/* stores the current window size */
|
||||
/*uint8_t ActualWindowSize; */
|
||||
/* stores the window size proposed by the segment sender */
|
||||
/*uint8_t ProposedWindowSize; */
|
||||
/* used to perform timeout on PDU segments */
|
||||
/*uint8_t SegmentTimer; */
|
||||
/* used to perform timeout on Confirmed Requests */
|
||||
/* in milliseconds */
|
||||
uint16_t RequestTimer;
|
||||
// unique id
|
||||
/* unique id */
|
||||
uint8_t InvokeID;
|
||||
// state that the TSM is in
|
||||
/* state that the TSM is in */
|
||||
BACNET_TSM_STATE state;
|
||||
// the address we sent it to
|
||||
/* the address we sent it to */
|
||||
BACNET_ADDRESS dest;
|
||||
// copy of the PDU, should we need to send it again
|
||||
/* copy of the PDU, should we need to send it again */
|
||||
uint8_t pdu[MAX_PDU];
|
||||
unsigned pdu_len;
|
||||
} BACNET_TSM_DATA;
|
||||
@@ -92,14 +92,14 @@ extern "C" {
|
||||
bool tsm_transaction_available(void);
|
||||
uint8_t tsm_transaction_idle_count(void);
|
||||
void tsm_timer_milliseconds(uint16_t milliseconds);
|
||||
// free the invoke ID when the reply comes back
|
||||
/* free the invoke ID when the reply comes back */
|
||||
void tsm_free_invoke_id(uint8_t invokeID);
|
||||
// use these in tandem
|
||||
/* use these in tandem */
|
||||
uint8_t tsm_next_free_invokeID(void);
|
||||
// returns the same invoke ID that was given
|
||||
/* returns the same invoke ID that was given */
|
||||
void tsm_set_confirmed_unsegmented_transaction(uint8_t invokeID,
|
||||
BACNET_ADDRESS * dest, uint8_t * pdu, uint16_t pdu_len);
|
||||
// returns true if transaction is found
|
||||
/* returns true if transaction is found */
|
||||
bool tsm_get_transaction_pdu(uint8_t invokeID,
|
||||
BACNET_ADDRESS * dest, uint8_t * pdu, uint16_t * pdu_len);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user