forked from gatsby/datalink_repo
update comments.
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user