Function
nuContMgrInit
Syntax:
u8 nuContMgrInit(void)
Arguments:
None
Return Value:
Bit pattern of the connected Controller
Explanation:
Initilializes and registers the Controller Manager
Initializes the Controller Manager and registers it in the SI Manager. Use the nuContMgrRemove function to remove the Controller Manager from the SI manager.
7 6 5 4 3 2 1 0 bit ------------------------------- Bit pattern | - | - | - | - | 4 | 3 | 2 | 1 | ------------------------------- Bit is 1 if the Controller is connected.
If you want to execute some function after the Controller data has been read, you can register that function as a callback function in the Controller Manager. The registration is made with the nuContReadFuncSet function and removed with the nuContReadFuncRemove function.
Since this function is called by the nuContInit function, in most cases this function does not need to be called.
Reference:nuSiMgrInit, nuContInit, nuContReadFuncSet, nuContReadFuncRemove