Found 10 other functions taking a
spi_hal_context_t
argument:
Deinit the peripheral (and the context if needed).
Check whether the transaction is done (trans_done is set).
Init the peripheral and the context.
Config default output IO level when don't have transaction
Setup device-related configurations according to the settings in the context.
Setup transaction related configurations according to the settings in the context.
Trigger start a user-defined transaction.
Setup transaction operations, write tx buffer to HW registers
Post transaction operations, mainly fetch data from the buffer.