@@ -269,11 +269,11 @@ typedef struct {
269269// PRIVATE functions
270270
271271/**
272- * @brief Initialise SM variables and transport HW
272+ * @brief Initialize SM variables and transport HW
273273*/
274274void stInitTransition (void );
275275/**
276- * @brief Initialise transport
276+ * @brief Initialize transport
277277*/
278278void stInitUpdate (void );
279279/**
@@ -345,7 +345,7 @@ void transportProcessMessage(void);
345345/**
346346* @brief Assign node ID
347347* @param newNodeId New node ID
348- * @return true if node ID valid and successfully assigned
348+ * @return true if node ID is valid and successfully assigned
349349*/
350350bool transportAssignNodeID (const uint8_t newNodeId );
351351/**
@@ -409,7 +409,7 @@ void transportInitialize(void);
409409void transportProcess (void );
410410/**
411411* @brief Flag transport ready
412- * @return true if transport is initialize and ready
412+ * @return true if transport is initialized and ready
413413*/
414414bool isTransportReady (void );
415415/**
@@ -462,41 +462,55 @@ void transportSetRoute(const uint8_t node, const uint8_t route);
462462* @return route to node
463463*/
464464uint8_t transportGetRoute (const uint8_t node );
465-
465+ /**
466+ * @brief Get node ID
467+ * @return node ID
468+ */
469+ uint8_t transportGetNodeId (void );
470+ /**
471+ * @brief Get parent node ID
472+ * @return parent node ID
473+ */
474+ uint8_t transportGetParentNodeId (void );
475+ /**
476+ * @brief Get distance to GW
477+ * @return distance (=hops) to GW
478+ */
479+ uint8_t transportGetDistanceGW (void );
466480
467481// interface functions for radio driver
468482
469483/**
470484* @brief Initialize transport HW
471485* @return true if initialization successful
472486*/
473- bool transportInit ();
487+ bool transportInit (void );
474488/**
475489* @brief Set node address
476490*/
477- void transportSetAddress (uint8_t address );
491+ void transportSetAddress (const uint8_t address );
478492/**
479493* @brief Retrieve node address
480494*/
481- uint8_t transportGetAddress ();
495+ uint8_t transportGetAddress (void );
482496/**
483497* @brief Send message
484498* @param to recipient
485499* @param data message to be sent
486500* @param len length of message (header + payload)
487501* @return true if message sent successfully
488502*/
489- bool transportSend (uint8_t to , const void * data , uint8_t len );
503+ bool transportSend (const uint8_t to , const void * data , const uint8_t len );
490504/**
491505* @brief Verify if RX FIFO has pending messages
492506* @return true if message available in RX FIFO
493507*/
494- bool transportAvailable ();
508+ bool transportAvailable (void );
495509/**
496510* @brief Sanity check for transport: is transport still responsive?
497- * @return true transport ok
511+ * @return true if transport HW is ok
498512*/
499- bool transportSanityCheck ();
513+ bool transportSanityCheck (void );
500514/**
501515* @brief Receive message from FIFO
502516* @return length of recevied message (header + payload)
@@ -505,24 +519,7 @@ uint8_t transportReceive(void* data);
505519/**
506520* @brief Power down transport HW
507521*/
508- void transportPowerDown ();
509-
510- /**
511- * @brief Get node ID
512- * @return node ID
513- */
514- uint8_t transportGetNodeId (void );
515- /**
516- * @brief Get parent node ID
517- * @return parent node ID
518- */
519- uint8_t transportGetParentNodeId (void );
520- /**
521- * @brief Get distance to GW
522- * @return distance (=hops) to GW
523- */
524- uint8_t transportGetDistanceGW (void );
525-
522+ void transportPowerDown (void );
526523
527524#endif // MyTransport_h
528525/** @}*/
0 commit comments