Skip to content
This repository was archived by the owner on May 23, 2023. It is now read-only.

Commit f9a31e9

Browse files
author
Jarkko Paso
committed
FHSS API: Added callback to read synch info
1 parent f94b2ab commit f9a31e9

File tree

1 file changed

+13
-0
lines changed

1 file changed

+13
-0
lines changed

nanostack/fhss_api.h

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -276,6 +276,18 @@ typedef int mac_broadcast_notify(const fhss_api_t *fhss_api, uint32_t broadcast_
276276
*/
277277
typedef int mac_read_coordinator_mac_address(const fhss_api_t *fhss_api, uint8_t *mac_address);
278278

279+
/**
280+
* @brief Read synchronization info for a specific peer.
281+
* @param fhss_api FHSS instance.
282+
* @param info_ptr Pointer to info data.
283+
* @param mac_address MAC address pointer.
284+
* @param info_type Type of the read info (UTT-IE, BT-IE, US-IE, BS-IE).
285+
* @param rx_timestamp Time of reception of the element.
286+
* @return >=0 Length of the info.
287+
* @return -1 Fail.
288+
*/
289+
typedef int mac_read_synch_info(const fhss_api_t *fhss_api, uint8_t *info_ptr, uint8_t *mac_address, int info_type, uint32_t rx_timestamp);
290+
279291
/**
280292
* \brief Struct fhss_callback defines functions that software MAC needs to implement.
281293
* Function pointers are passed to FHSS using fhss_init_callbacks function.
@@ -290,6 +302,7 @@ struct fhss_callback {
290302
mac_tx_poll *tx_poll; /**< Poll TX queue. */
291303
mac_broadcast_notify *broadcast_notify; /**< Broadcast channel notification from FHSS. */
292304
mac_read_coordinator_mac_address *read_coord_mac_address; /**< Read coordinator MAC address. */
305+
mac_read_synch_info *read_synch_info; /**< Read information element for a specific MAC address. */
293306
};
294307

295308
#ifdef __cplusplus

0 commit comments

Comments
 (0)