Vault 7: Projects

This publication series is about specific projects related to the Vault 7 main publication.

DRV_SPI_Lock Locks the SPI instance specified using the channel parameter
DRV_SPI_Unlock Unlocks the SPI instance specified by channel parameter
Description
1.3.3.1.1 DRV_SPI_Deinitialize Function
Deinitializes the SPI instance specified by the channel parameter
File
drv_spi.h
Syntax
void DRV_SPI_Deinitialize(uint8_t channel);
Returns
None.
Description
This routine deinitializes the spi driver instance specified by the channel parameter.
Remarks
This routine must be called before any other SPI routine is called. This routine should only be called once during system
initialization.
Preconditions
None.
Example
uint8_t myChannel = 2;
DRV_SPI_Deinitialize(myChannel);
Parameters
Parameters Description
channel SPI instance which needs to be deinitialized.
Function
void DRV_SPI_Deinitialize (uint8_t channel)
1.3.3.1.2 DRV_SPI_Initialize Function
Initializes the SPI instance specified by the channel of the initialization structure.
File
drv_spi.h
Syntax
void DRV_SPI_Initialize(DRV_SPI_INIT_DATA * pData);
Returns
None.
Description
This routine initializes the spi driver instance specified by the channel of the initialization structure making it ready for clients
to lock and use it.
1.3 SPI Driver MLA - Drivers Help Driver Interface
72

e-Highlighter

Click to send permalink to address bar, or right-click to copy permalink.

Un-highlight all Un-highlight selectionu Highlight selectionh