Functions
SPIM Initialization and de-initialization functions
Peripheral Driver » LL Driver » SPI » Functions
Collaboration diagram for SPIM Initialization and de-initialization functions:

## Functions
error_status_t | ll_spim_deinit (ssi_regs_t *SPIx)
| De-initialize SSI registers (Registers restored to their default values). More...
error_status_t | ll_spim_init (ssi_regs_t *SPIx, ll_spim_init_t *p_spi_init)
| Initialize SPIM registers according to the specified parameters in p_spi_init. More...
void | ll_spim_struct_init (ll_spim_init_t *p_spi_init)
| Set each field of a ll_spim_init_t type structure to default value. More...

## Detailed Description

## Function Documentation

## ◆ ll_spim_deinit()

error_status_t ll_spim_deinit | ( | ssi_regs_t * | SPIx | ) |

De-initialize SSI registers (Registers restored to their default values).

Parameters

  SPIx | SSI instance

Return values

  An | error_status_t enumeration value: SUCCESS: SSI registers are de-initialized ERROR: SSI registers are not de-initialized

## ◆ ll_spim_init()

error_status_t ll_spim_init | ( | ssi_regs_t * | SPIx,
|  | ll_spim_init_t * | p_spi_init
| ) |  |

Initialize SPIM registers according to the specified parameters in p_spi_init.

Parameters

  SPIx | SSI instance
  p_spi_init | Pointer to a ll_spim_init_t structure that contains the configuration information for the specified SPIM peripheral.

Return values

  An | error_status_t enumeration value: SUCCESS: SSI registers are initialized according to p_spi_init content ERROR: Problem occurred during SSI Registers initialization

## ◆ ll_spim_struct_init()

void ll_spim_struct_init | ( | ll_spim_init_t * | p_spi_init | ) |

Set each field of a ll_spim_init_t type structure to default value.

Parameters

  p_spi_init | Pointer to a ll_spim_init_t structure whose fields will be set to default values.

Return values

  None |