API initialises an instance of the driver.
Traverse "/sys/bus/platform/device" directory (in Linux), to find registered PRACH device with the name DeviceNodeName. The first available slot in the instance array XDfePrach_Prach[] will be taken as a DeviceNodeName object. On success it moves the state machine to a Ready state, while on failure stays in a Not Ready state.
Prototype
XDfePrach
* XDfePrach_InstanceInit(const char *DeviceNodeName);
Parameters
The following table lists the XDfePrach_InstanceInit
function arguments.
Type | Member | Description |
---|---|---|
const char * | DeviceNodeName | Device node name. |
Returns
- Pointer to the instance if successful.
- NULL on error.