| PM5358 |
| Application Programming Interface |
|
|
Inputs | None |
Outputs | None |
Returns | Success = SUNI4x622_SUCCESS |
| Failure = SUNI4x622_ERR_INVALID_MODULE_STATE |
Valid States | SUNI4x622_MOD_IDLE, SUNI4x622_MOD_READY |
Side Effects | Changes the MODULE state to SUNI4x622_MOD_START |
Starting the Driver Module: suni4x622ModuleStart
This function connects the RTOS resources to the driver. This involves allocating semaphores and timers, initializing buffers and installing the ISR handler and DPR task. Upon successful return from this function the driver is ready to add devices.
Prototype | INT4 suni4x622ModuleStart(void) |
Inputs | None |
Outputs | None |
Returns | Success = SUNI4x622_SUCCESS |
| Failure = SUNI4x622_ERR_INVALID_MODULE_STATE |
| SUNI4x622_ERR_MEM_ALLOC |
| SUNI4x622_ERR_INT_INSTALL |
Valid States | SUNI4x622_MOD_IDLE |
Side Effects | Changes the MODULE state to SUNI4x622_MOD_READY |
Stopping the Driver Module: suni4x622ModuleStop
This function disconnects the RTOS resources from the driver. This involves
Prototype | INT4 suni4x622ModuleStop(void) |
Inputs | None |
Outputs | None |
Returns | Success = SUNI4x622_SUCCESS |
| Failure = SUNI4x622_ERR_INVALID_MODULE_STATE |
Valid States | SUNI4x622_MOD_READY |
Proprietary and Confidential to | 53 |
Document ID: |
|