1.2.6.4.14 SRV_USI_INIT Struct

C

typedef struct
{
    const void * const deviceInitData;

    const SRV_USI_DEV_DESC* consDevDesc;

    uint32_t deviceIndex;
    
    void* pWrBuffer;
    
    size_t wrBufferSize;

} SRV_USI_INIT;

Summary

Contains the data required to initialize an instance of the USI service.

Description

This structure contains the data needed to initialize an instance of the USI service. It is passed as parameter (casted as SYS_MODULE_INIT) to SRV_USI_Initialize function.

Field description:

  • deviceInitData: Pointer to data initialization struct for the specific USI instance type; UART (see srv_usi_usart.h) or USB CDC (see srv_usi_cdc.h)

  • consDevDesc: Pointer to SRV_USI_DEV_DESC Struct

  • deviceIndex: USI instance index for the specific USI instance type (UART or USB CDC)

  • pWrBuffer: Pointer to buffer to encode transmitted USI messages

  • wrBufferSize: Size in bytes of buffer to encode transmitted USI messages

Remarks

This initialization data struct is automatically generated for each USI instance depending on MCC configuration (see initialization.c).