Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Fork of d7a_1x by
Diff: include/d7a_alp.h
- Revision:
- 52:c7a58fc48bd2
- Parent:
- 49:81d5bddb02f0
- Child:
- 56:da34fc11e760
--- a/include/d7a_alp.h Tue Sep 06 15:00:32 2016 +0000 +++ b/include/d7a_alp.h Tue Sep 06 15:23:39 2016 +0000 @@ -68,18 +68,18 @@ // ======================================================================= // d7a_id_t // ----------------------------------------------------------------------- -/// Identifier types enumerator +// Identifier types enumerator // ======================================================================= typedef enum { - /// Void identifier (broadcast) - /// with indication of number of reached devices + // Void identifier (broadcast) + // with indication of number of reached devices D7A_ID_NBID = 0, - /// Void identifier (broadcast) + // Void identifier (broadcast) D7A_ID_NOID = 1, - /// Unique Identifier + // Unique Identifier D7A_ID_UID = 2, - /// Virtual identifier + // Virtual identifier D7A_ID_VID = 3, } d7a_id_t; @@ -96,26 +96,26 @@ // ======================================================================= // d7a_resp_t // ----------------------------------------------------------------------- -/// Enumerator of the D7ASP Response types +// Enumerator of the D7ASP Response types // ======================================================================= typedef enum { - /// No response requested + // No response requested D7A_RESP_NO = 0, - /// Get all responses in response period + // Get all responses in response period D7A_RESP_ALL, - /// Get at least one acknowledgement per request during response period + // Get at least one acknowledgement per request during response period D7A_RESP_ANY, - /// RFU + // RFU D7A_RESP_RFU_1, - /// No response requested, repeat 3 times + // No response requested, repeat 3 times D7A_RESP_NO_RPT, - /// Get all responses in response period, only Responders having not received packets respond + // Get all responses in response period, only Responders having not received packets respond D7A_RESP_ON_ERR, - /// Get at least one acknowledgement per request during response period. - /// Stick to a single responder when possible + // Get at least one acknowledgement per request during response period. + // Stick to a single responder when possible D7A_RESP_PREFERRED, - /// RFU + // RFU D7A_RESP_RFU_2, } d7a_resp_t; @@ -171,15 +171,15 @@ // ======================================================================= // d7a_ctf_t // ----------------------------------------------------------------------- -/// DLL compressed time format +// DLL compressed time format // ======================================================================= typedef union { // bit access fields struct { - /// Mantissa + // Mantissa uint8_t mant : 5; - /// Exponent + // Exponent uint8_t exp : 3; } bf; @@ -191,19 +191,19 @@ // ======================================================================= // d7a_qos_t // ----------------------------------------------------------------------- -/// Bitfield structure of the D7ASP Quality of Service control byte +// Bitfield structure of the D7ASP Quality of Service control byte // ======================================================================= typedef union { // bit access fields struct { - /// Response mode + // Response mode uint8_t resp : 3; - /// Retry mode + // Retry mode uint8_t retry : 3; - /// Responder has to keep the ACK template (TPL status file) + // Responder has to keep the ACK template (TPL status file) uint8_t record : 1; - /// Stop D7ASP on not acknowledged request + // Stop D7ASP on not acknowledged request uint8_t stop_on_err : 1; } bf; @@ -216,15 +216,15 @@ // ======================================================================= // d7a_sp_cfg_t // ----------------------------------------------------------------------- -/// Structure of the D7ASP Configuration +// Structure of the D7ASP Configuration // ======================================================================= TYPEDEF_STRUCT_PACKED { - /// D7ASP QoS + // D7ASP QoS d7a_qos_t qos; - /// Dormant Timeout (0, no timeout) + // Dormant Timeout (0, no timeout) d7a_ctf_t dorm_to; - /// Addressee + // Addressee d7a_addressee_t addressee; } d7a_sp_cfg_t; @@ -233,8 +233,8 @@ // ======================================================================= // alp_d7a_itf_t // ----------------------------------------------------------------------- -/// ALP/D7A Interface file TODO:should be in alp_d7a.h when/if it exists -/// but not in alp.h as it requires D7A +// ALP/D7A Interface file TODO:should be in alp_d7a.h when/if it exists +// but not in alp.h as it requires D7A // ==================================================================== TYPEDEF_STRUCT_PACKED { uint8_t type;