update comments.

This commit is contained in:
Gatsby Van
2023-12-22 01:19:11 +08:00
parent 218fb01193
commit 0bec764c96
+9 -1
View File
@@ -41,20 +41,28 @@ static void L2_SetSlotNum(L2_INST* instPtr, uint32_t newSlotNum);
static void L2_SetFrameNum(L2_INST* instPtr, uint32_t newFrameNum);
static void L2_UpdateSlotNum(L2_INST* instPtr);
static void L2_DataAvailUpdate(L2_INST* instPtr, bool status);
static void L2_EventPoolHandler(L2_INST* instPtr);
/**
* @brief helper function to update linkelayer state
*/
static inline void UpdateMainSate(L2_INST* instPtr, L2_NODE_STATE newSate) {
ASSERT(instPtr != NULL);
DBG_INFO("MainStateUpdate: %d -> %d\n", instPtr->mainState, newSate);
instPtr->nextState = newSate;
}
/**
* @brief helper function to set slot number.
*/
static void L2_SetSlotNum(L2_INST* instPtr, uint32_t newSlotNum){
ASSERT(instPtr != NULL);
DBG_INFO("Set new slot number to %u\n", newSlotNum);
instPtr->slotNum.next = newSlotNum;
}
/**
* @brief helper function to set frame number
*/
static void L2_SetFrameNum(L2_INST* instPtr, uint32_t newFrameNum){
ASSERT(instPtr != NULL);
DBG_INFO("Set new frame number to %u\n", newFrameNum);