Skip to content

Commit c0456a3

Browse files
Juha Heiskanenjuhhei01
authored andcommitted
Defined own structure to give CSMA backoff symbol time and cca mode.
Change-Id: Ia07c5d34ff1cb5b2d4fe01c77c60e9fccc4d065d
1 parent dff1e7d commit c0456a3

File tree

1 file changed

+8
-2
lines changed

1 file changed

+8
-2
lines changed

nanostack/platform/arm_hal_phy.h

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -62,8 +62,8 @@ typedef enum {
6262
PHY_EXTENSION_READ_TX_FINNISH_TIME, /**< Read the time of last finished TX symbol based on global time stamp. */
6363
PHY_EXTENSION_DYNAMIC_RF_SUPPORTED, /**< Read status for support Radio driver support for set TX time, CCA and Timestamp read. Also PHY_LINK_CCA_PREPARE tx status must be supported also*/
6464
PHY_EXTENSION_GET_TIMESTAMP, /**< Read 32-bit constant monotonic time stamp in us */
65-
PHY_EXTENSION_SET_CSMA_PARAMETERS, /**< CSMA parameter's: Include 32-bit backoff time in us and CCA mode used after timeout CCA is boolean true do normal CCA and false start TX direct*/
66-
PHY_EXTENSION_GET_SYMBOLS_IN_SECOND, /**< Read Symbols per seconds which will help to convert symbol time to real time */
65+
PHY_EXTENSION_SET_CSMA_PARAMETERS, /**< CSMA parameter's are given by phy_csma_params_t structure remember type cast uint8_t pointer to structure type*/
66+
PHY_EXTENSION_GET_SYMBOLS_PER_SECOND, /**< Read Symbols per seconds which will help to convert symbol time to real time */
6767
} phy_extension_type_e;
6868

6969
/** Address types */
@@ -118,6 +118,12 @@ typedef struct phy_signal_info_s {
118118
uint16_t result; /**< Resulting signal information. */
119119
} phy_signal_info_s;
120120

121+
/** CSMA-CA parameters */
122+
typedef struct phy_csma_params {
123+
uint32_t symbol_backoff_time; /**< CSMA Backoff symbol time before start CCA & TX. */
124+
bool cca_enabled; /**< True will affect CCA check false start TX direct after backoff */
125+
} phy_csma_params_t;
126+
121127
/** PHY modulation scheme */
122128
typedef enum phy_modulation_e
123129
{

0 commit comments

Comments
 (0)