31.1.3.1 pdec_async_init
Initialize Position Decoder.
int32_t pdec_async_init(
struct pdec_async_descriptor *const descr,
void *const hw
)
This function initializes the given Position Decoder descriptor. It checks if the given hardware is not initialized and if the given hardware is permitted to be initialized.
Parameters
- descr
-
Type: struct pdec_async_descriptor Struct *const
A Position Decoder descriptor to be initialized
- hw
-
Type: void *const
The pointer to hardware instance
Returns
Type: int32_t
Initialization status.
- -1
-
Passed parameters were invalid
- 0
-
The initialization is completed successfully