simplified function signature.
This commit is contained in:
@@ -106,9 +106,9 @@ typedef struct
|
||||
L2_NODE_STATE mainState; // the main state of link layer state
|
||||
L2_NODE_STATE nextState; // next state of link layer state, which will be applied to mainState every second.
|
||||
L2_RTNE_CONFIG rtneConfig; // current routine table configuration and status.
|
||||
L2_SCAN_FSM *scanNetFSM; // FSM of scan net (link set up)
|
||||
L2_MGMT_FSM *mgmtNetFSM; // FSM of management net (link management and time sync)
|
||||
L2_SVC_FSM *serviceNetFSM; // FSM of service net (data service)
|
||||
L2_SCAN_FSM *scanFSM; // FSM of scan net (link set up)
|
||||
L2_MGMT_FSM *mgmtFSM; // FSM of management net (link management and time sync)
|
||||
L2_SVC_FSM *serviceFSM; // FSM of service net (data service)
|
||||
L2_RTT_FSM *rttFSM; // FSM for RTT (time sync algorithm)
|
||||
uint8_t *sendPktData;
|
||||
uint8_t *recvPktData;
|
||||
@@ -160,26 +160,26 @@ int32_t L2_CrcAppend(uint8_t *dataBuff, uint32_t dataLen, uint32_t crcPos, L2_CR
|
||||
bool L2_CrcCheck(uint8_t *dataBuff, uint32_t dataLen, uint32_t crcPos, L2_CRC_TYPE crcType);
|
||||
|
||||
// Scan Net
|
||||
int32_t ScanNet_Init(L2_SCAN_FSM **scanFSMPtr);
|
||||
void ScanNet_Reset(L2_SCAN_FSM *scanFSMPtr);
|
||||
void ScanNet_Destroy(L2_SCAN_FSM *scanFSMPtr);
|
||||
int32_t ScanNet_Proc(L2_INST *instPtr);
|
||||
int32_t ScanNet_PktHandler(L2_INST *instPtr);
|
||||
int32_t ScanNet_Routine(L2_INST *instPtr, const L2_RTNE_TABLE_ENTRY *rtneEntry);
|
||||
int32_t L2_Scan_Init(L2_SCAN_FSM **scanFSMPtr);
|
||||
void L2_Scan_Reset(L2_SCAN_FSM *scanFSMPtr);
|
||||
void L2_Scan_Destroy(L2_SCAN_FSM *scanFSMPtr);
|
||||
int32_t L2_Scan_Proc(L2_INST *instPtr);
|
||||
int32_t L2_Scan_PktHandler(L2_INST *instPtr);
|
||||
int32_t L2_Scan_Routine(L2_INST *instPtr, const L2_RTNE_TABLE_ENTRY *rtneEntry);
|
||||
|
||||
// Management Net
|
||||
int32_t MgmtNet_Init(L2_MGMT_FSM **mgmtFSM);
|
||||
void MgmtNet_Reset(L2_MGMT_FSM *mgmtFSM);
|
||||
void MgmtNet_Destroy(L2_MGMT_FSM *mgmtFSM);
|
||||
int32_t MgmtNet_PktHandler(L2_INST *instPtr);
|
||||
int32_t MgmtNet_Routine(L2_INST *instPtr, const L2_RTNE_TABLE_ENTRY *rtneEntry);
|
||||
int32_t L2_Mgmt_Init(L2_MGMT_FSM **mgmtFSM);
|
||||
void L2_Mgmt_Reset(L2_MGMT_FSM *mgmtFSM);
|
||||
void L2_Mgmt_Destroy(L2_MGMT_FSM *mgmtFSM);
|
||||
int32_t L2_Mgmt_PktHandler(L2_INST *instPtr);
|
||||
int32_t L2_Mgmt_Routine(L2_INST *instPtr, const L2_RTNE_TABLE_ENTRY *rtneEntry);
|
||||
|
||||
// Service net
|
||||
int32_t ServiceNet_Init(L2_SVC_FSM **serviceFSM);
|
||||
void ServiceNet_Reset(L2_SVC_FSM *serviceFSM);
|
||||
void ServiceNet_Destroy(L2_SVC_FSM *serviceFSM);
|
||||
int32_t ServiceNet_PktHandler(L2_INST *instPtr);
|
||||
int32_t ServiceNet_Routine(L2_INST *instPtr, const L2_RTNE_TABLE_ENTRY *schedEntry);
|
||||
int32_t L2_Service_Init(L2_SVC_FSM **serviceFSM);
|
||||
void L2_Service_Reset(L2_SVC_FSM *serviceFSM);
|
||||
void L2_Service_Destroy(L2_SVC_FSM *serviceFSM);
|
||||
int32_t L2_Service_PktHandler(L2_INST *instPtr);
|
||||
int32_t L2_Service_Routine(L2_INST *instPtr, const L2_RTNE_TABLE_ENTRY *schedEntry);
|
||||
|
||||
// Miscellaneous
|
||||
uint8_t L2_GetNodeId(L2_INST *instPtr);
|
||||
|
||||
Reference in New Issue
Block a user