|
GPS Device
|
Functions | |
| void | spi_init (SPI_CFG_ts *spi_cfg) |
| Initializes the SPI peripheral with the given configuration. | |
| void | spi_deinit (SPI_REGDEF_ts const *instance) |
| Deinitializes the SPI peripheral and disables its clock. | |
| void | spi_send (SPI_REGDEF_ts *instance, uint8_t *tx_buffer, uint32_t len) |
| Blocking SPI transmit. | |
| void | spi_receive (SPI_REGDEF_ts *instance, uint8_t *rx_buffer, uint32_t len) |
| Blocking SPI receive. | |
| void | spi_set_pclk_div (SPI_REGDEF_ts *spi_instance, SPI_MASTER_SCLK_SPEED_te pclk_div) |
| Changes the SPI master clock speed divisor at runtime. | |
| void | spi_set_comm (SPI_REGDEF_ts *instance, EN_STATUS_te en_status) |
| Enables or disables the SPI peripheral. | |
| void spi_init | ( | SPI_CFG_ts * | spi_cfg | ) |
Initializes the SPI peripheral with the given configuration.
Definition at line 24 of file stm32f401re_spi.c.


| void spi_deinit | ( | SPI_REGDEF_ts const * | instance | ) |
Deinitializes the SPI peripheral and disables its clock.
Definition at line 72 of file stm32f401re_spi.c.


| void spi_send | ( | SPI_REGDEF_ts * | instance, |
| uint8_t * | tx_buffer, | ||
| uint32_t | len ) |
Blocking SPI transmit.
Blocking SPI transmit. Sends len bytes from tx_buffer.
Definition at line 90 of file stm32f401re_spi.c.

| void spi_receive | ( | SPI_REGDEF_ts * | instance, |
| uint8_t * | rx_buffer, | ||
| uint32_t | len ) |
Blocking SPI receive.
Blocking SPI receive. Reads len bytes into rx_buffer.
Definition at line 115 of file stm32f401re_spi.c.

| void spi_set_pclk_div | ( | SPI_REGDEF_ts * | spi_instance, |
| SPI_MASTER_SCLK_SPEED_te | pclk_div ) |
Changes the SPI master clock speed divisor at runtime.
Definition at line 143 of file stm32f401re_spi.c.

| void spi_set_comm | ( | SPI_REGDEF_ts * | instance, |
| EN_STATUS_te | en_status ) |
Enables or disables the SPI peripheral.
Enables or disables the SPI peripheral (SPE bit).
Definition at line 149 of file stm32f401re_spi.c.
