_BSP_User_Manual
|
Functions | |
static void | FSMC_BANK1NORSRAM4_MspInit (void) |
Initializes FSMC_BANK4 MSP. | |
static void | FSMC_BANK1NORSRAM4_Init (void) |
Initializes LCD IO. | |
static void | FSMC_BANK1NORSRAM4_WriteData (uint16_t Data) |
Writes register value. | |
static void | FSMC_BANK1NORSRAM4_WriteReg (uint8_t Reg) |
Writes register address. | |
static uint16_t | FSMC_BANK1NORSRAM4_ReadData (uint8_t Reg) |
Reads register value. | |
static void | I2Cx_MspInit (I2C_HandleTypeDef *hi2c) |
Eval I2Cx MSP Initialization. | |
static void | I2Cx_Init (void) |
Eval I2Cx Bus initialization. | |
static void | I2Cx_WriteData (uint16_t Addr, uint8_t Reg, uint8_t Value) |
Write a value in a register of the device through BUS. | |
static HAL_StatusTypeDef | I2Cx_WriteBuffer (uint16_t Addr, uint8_t Reg, uint16_t RegSize, uint8_t *pBuffer, uint16_t Length) |
Write a value in a register of the device through BUS. | |
static uint8_t | I2Cx_ReadData (uint16_t Addr, uint8_t Reg) |
Read a value in a register of the device through BUS. | |
static HAL_StatusTypeDef | I2Cx_ReadBuffer (uint16_t Addr, uint8_t Reg, uint16_t RegSize, uint8_t *pBuffer, uint16_t Length) |
Reads multiple data on the BUS. | |
static HAL_StatusTypeDef | I2Cx_IsDeviceReady (uint16_t DevAddress, uint32_t Trials) |
Checks if target device is ready for communication. | |
static void | I2Cx_Error (void) |
Eval I2Cx error treatment function. | |
static void | SPIx_MspInit (SPI_HandleTypeDef *hspi) |
Initializes SPI MSP. | |
static HAL_StatusTypeDef | SPIx_Init (void) |
Initializes SPI HAL. | |
static uint8_t | SPIx_Write (uint8_t WriteValue) |
SPI Write a byte to device. | |
static uint8_t | SPIx_Read (void) |
SPI Read 1 byte from device. | |
static void | SPIx_Error (void) |
SPI error treatment function. |
Function Documentation
static void FSMC_BANK1NORSRAM4_Init | ( | void | ) | [static] |
Initializes LCD IO.
Definition at line 597 of file stm3210e_eval.c.
References FSMC_BANK1NORSRAM4_MspInit().
Referenced by LCD_IO_Init().
static void FSMC_BANK1NORSRAM4_MspInit | ( | void | ) | [static] |
Initializes FSMC_BANK4 MSP.
Definition at line 552 of file stm3210e_eval.c.
Referenced by FSMC_BANK1NORSRAM4_Init().
static uint16_t FSMC_BANK1NORSRAM4_ReadData | ( | uint8_t | Reg | ) | [static] |
Reads register value.
Definition at line 668 of file stm3210e_eval.c.
References TFT_LCD.
Referenced by LCD_IO_ReadData().
static void FSMC_BANK1NORSRAM4_WriteData | ( | uint16_t | Data | ) | [static] |
Writes register value.
Definition at line 647 of file stm3210e_eval.c.
References TFT_LCD.
Referenced by LCD_IO_WriteData(), and LCD_IO_WriteMultipleData().
static void FSMC_BANK1NORSRAM4_WriteReg | ( | uint8_t | Reg | ) | [static] |
Writes register address.
Definition at line 658 of file stm3210e_eval.c.
References TFT_LCD.
Referenced by LCD_IO_WriteReg().
static void I2Cx_Error | ( | void | ) | [static] |
Eval I2Cx error treatment function.
Definition at line 865 of file stm3210e_eval.c.
References heval_I2c, and I2Cx_Init().
Referenced by I2Cx_ReadBuffer(), I2Cx_ReadData(), I2Cx_WriteBuffer(), and I2Cx_WriteData().
static void I2Cx_Init | ( | void | ) | [static] |
Eval I2Cx Bus initialization.
Definition at line 736 of file stm3210e_eval.c.
References BSP_I2C_SPEED, EVAL_I2Cx, heval_I2c, and I2Cx_MspInit().
Referenced by AUDIO_IO_Init(), I2Cx_Error(), and TSENSOR_IO_Init().
static HAL_StatusTypeDef I2Cx_IsDeviceReady | ( | uint16_t | DevAddress, |
uint32_t | Trials | ||
) | [static] |
Checks if target device is ready for communication.
- Note:
- This function is used with Memory devices
Definition at line 855 of file stm3210e_eval.c.
References heval_I2c, and I2cxTimeout.
Referenced by TSENSOR_IO_IsDeviceReady().
static void I2Cx_MspInit | ( | I2C_HandleTypeDef * | hi2c | ) | [static] |
Eval I2Cx MSP Initialization.
Definition at line 685 of file stm3210e_eval.c.
References EVAL_I2Cx, EVAL_I2Cx_CLK_ENABLE, EVAL_I2Cx_ER_IRQn, EVAL_I2Cx_EV_IRQn, EVAL_I2Cx_FORCE_RESET, EVAL_I2Cx_RELEASE_RESET, EVAL_I2Cx_SCL_GPIO_CLK_ENABLE, EVAL_I2Cx_SCL_GPIO_PORT, EVAL_I2Cx_SCL_PIN, EVAL_I2Cx_SDA_GPIO_CLK_ENABLE, EVAL_I2Cx_SDA_GPIO_PORT, and EVAL_I2Cx_SDA_PIN.
Referenced by I2Cx_Init().
static HAL_StatusTypeDef I2Cx_ReadBuffer | ( | uint16_t | Addr, |
uint8_t | Reg, | ||
uint16_t | RegSize, | ||
uint8_t * | pBuffer, | ||
uint16_t | Length | ||
) | [static] |
Reads multiple data on the BUS.
Definition at line 833 of file stm3210e_eval.c.
References heval_I2c, I2Cx_Error(), and I2cxTimeout.
Referenced by TSENSOR_IO_Read().
static uint8_t I2Cx_ReadData | ( | uint16_t | Addr, |
uint8_t | Reg | ||
) | [static] |
Read a value in a register of the device through BUS.
Definition at line 807 of file stm3210e_eval.c.
References heval_I2c, I2Cx_Error(), and I2cxTimeout.
Referenced by AUDIO_IO_Read().
static HAL_StatusTypeDef I2Cx_WriteBuffer | ( | uint16_t | Addr, |
uint8_t | Reg, | ||
uint16_t | RegSize, | ||
uint8_t * | pBuffer, | ||
uint16_t | Length | ||
) | [static] |
Write a value in a register of the device through BUS.
Definition at line 786 of file stm3210e_eval.c.
References heval_I2c, I2Cx_Error(), and I2cxTimeout.
Referenced by TSENSOR_IO_Write().
static void I2Cx_WriteData | ( | uint16_t | Addr, |
uint8_t | Reg, | ||
uint8_t | Value | ||
) | [static] |
Write a value in a register of the device through BUS.
Definition at line 763 of file stm3210e_eval.c.
References heval_I2c, I2Cx_Error(), and I2cxTimeout.
Referenced by AUDIO_IO_Write().
static void SPIx_Error | ( | void | ) | [static] |
SPI error treatment function.
Definition at line 977 of file stm3210e_eval.c.
References heval_Spi, and SPIx_Init().
Referenced by SPIx_Write().
HAL_StatusTypeDef SPIx_Init | ( | void | ) | [static] |
Initializes SPI HAL.
Definition at line 914 of file stm3210e_eval.c.
References EVAL_SPIx, heval_Spi, and SPIx_MspInit().
Referenced by FLASH_SPI_IO_Init(), and SPIx_Error().
static void SPIx_MspInit | ( | SPI_HandleTypeDef * | hspi | ) | [static] |
Initializes SPI MSP.
Definition at line 882 of file stm3210e_eval.c.
References EVAL_SPIx_CLK_ENABLE, EVAL_SPIx_MISO_MOSI_GPIO_CLK_ENABLE, EVAL_SPIx_MISO_MOSI_GPIO_PORT, EVAL_SPIx_MISO_PIN, EVAL_SPIx_MOSI_PIN, EVAL_SPIx_SCK_GPIO_CLK_ENABLE, EVAL_SPIx_SCK_GPIO_PORT, and EVAL_SPIx_SCK_PIN.
Referenced by SPIx_Init().
static uint8_t SPIx_Read | ( | void | ) | [static] |
SPI Read 1 byte from device.
Definition at line 967 of file stm3210e_eval.c.
References FLASH_SPI_DUMMY_BYTE, and SPIx_Write().
Referenced by FLASH_SPI_IO_ReadByte().
static uint8_t SPIx_Write | ( | uint8_t | WriteValue | ) | [static] |
SPI Write a byte to device.
Definition at line 945 of file stm3210e_eval.c.
References heval_Spi, SPIx_Error(), and SpixTimeout.
Referenced by FLASH_SPI_IO_ReadData(), FLASH_SPI_IO_ReadID(), FLASH_SPI_IO_WaitForWriteEnd(), FLASH_SPI_IO_WriteByte(), FLASH_SPI_IO_WriteEnable(), and SPIx_Read().
Generated on Thu Dec 11 2014 16:16:37 for _BSP_User_Manual by 1.7.5.1