1.2.6.4 Library Interface
USI service library provides the following interfaces:
Functions
Name | Description |
---|---|
SRV_USI_Initialize | Initializes the specified USI service instance |
SRV_USI_Open | Opens the specified USI service instance and returns a handle to it |
SRV_USI_Close | Closes an opened-instance of the USI service |
SRV_USI_Status | Returns the current status of the USI service |
SRV_USI_CallbackRegister | Registers a function to be called back when a new message is received and it belongs to the specified USI protocol |
SRV_USI_Tasks | Maintains the USI's state machine |
SRV_USI_Send_Message | Sends a message through serial interface (USI) |
Data types and constants
Name | Type | Description |
---|---|---|
SRV_USI_PROTOCOL_ID | Enum | List of available USI protocols |
SRV_USI_STATUS | Enum | List of possible values of USI status |
SRV_USI_HANDLE | Typedef | Handle to an opened instance of the USI service |
SRV_USI_HANDLE_INVALID | Macro | Definition of invalid USI handle |
SRV_USI_CALLBACK | Typedef | Pointer to an USI service callback function |
SRV_USI_DEV_DESC | Struct | Contains the API required by the USI service to abstract from the hardware peripheral used |
SRV_USI_INIT | Struct | Contains the data required to initialize an instance of the USI service |