19.6.4.3.2 Function spi_unlock()

Unlock driver instance.

void spi_unlock( struct spi_module *const module)

This function clears the instance lock, indicating that it is available for use.

Table 19-19. Parameters
Data directionParameter nameDescription

[in, out]

module

Pointer to the driver instance to lock

Table 19-20. Return Values
Return valueDescription

STATUS_OK

If the module was locked

STATUS_BUSY

If the module was already locked