Добавил:
Upload Опубликованный материал нарушает ваши авторские права? Сообщите нам.
Вуз: Предмет: Файл:
cubexHal.pdf
Скачиваний:
111
Добавлен:
10.02.2016
Размер:
16.16 Mб
Скачать

UM1725

 

HAL FMPI2C Generic Driver

Function Description

Write an amount of data in no-blocking mode with Interrupt to a

 

specific memory address.

Parameters

 

hfmpi2c: : Pointer to a FMPI2C_HandleTypeDef structure

 

 

that contains the configuration information for the specified

 

 

FMPI2C.

 

DevAddress: Target device address

 

MemAddress: Internal memory address

 

MemAddSize: Size of internal memory address

 

pData: Pointer to data buffer

 

Size: Amount of data to be sent

Return values

 

HAL status

23.2.23HAL_FMPI2C_Mem_Read_IT

Function Name

HAL_StatusTypeDef HAL_FMPI2C_Mem_Read_IT

 

(FMPI2C_HandleTypeDef * hfmpi2c, uint16_t DevAddress,

 

uint16_t MemAddress, uint16_t MemAddSize, uint8_t * pData,

 

uint16_t Size)

Function Description

Read an amount of data in no-blocking mode with Interrupt from a

 

specific memory address.

Parameters

 

hfmpi2c: : Pointer to a FMPI2C_HandleTypeDef structure

 

 

that contains the configuration information for the specified

 

 

FMPI2C.

 

DevAddress: Target device address

 

MemAddress: Internal memory address

 

MemAddSize: Size of internal memory address

 

pData: Pointer to data buffer

 

Size: Amount of data to be sent

Return values

 

HAL status

23.2.24HAL_FMPI2C_Mem_Write_DMA

Function Name

HAL_StatusTypeDef HAL_FMPI2C_Mem_Write_DMA

 

(FMPI2C_HandleTypeDef * hfmpi2c, uint16_t DevAddress,

 

uint16_t MemAddress, uint16_t MemAddSize, uint8_t * pData,

 

uint16_t Size)

Function Description

Write an amount of data in no-blocking mode with DMA to a

 

specific memory address.

Parameters

 

hfmpi2c: : Pointer to a FMPI2C_HandleTypeDef structure

 

 

that contains the configuration information for the specified

 

 

FMPI2C.

 

DevAddress: Target device address

 

MemAddress: Internal memory address

 

MemAddSize: Size of internal memory address

 

pData: Pointer to data buffer

 

Size: Amount of data to be sent

Return values

 

HAL status

23.2.25HAL_FMPI2C_Mem_Read_DMA

DOCID025834 Rev 2

337/900

HAL FMPI2C Generic Driver

 

UM1725

Function Name

HAL_StatusTypeDef HAL_FMPI2C_Mem_Read_DMA

 

(FMPI2C_HandleTypeDef * hfmpi2c, uint16_t DevAddress,

 

uint16_t MemAddress, uint16_t MemAddSize, uint8_t * pData,

 

uint16_t Size)

Function Description

Reads an amount of data in no-blocking mode with DMA from a

 

specific memory address.

Parameters

 

hfmpi2c: : Pointer to a FMPI2C_HandleTypeDef structure

 

 

that contains the configuration information for the specified

 

 

FMPI2C.

 

DevAddress: Target device address

 

MemAddress: Internal memory address

 

MemAddSize: Size of internal memory address

 

pData: Pointer to data buffer

 

Size: Amount of data to be read

Return values

 

HAL status

23.2.26HAL_FMPI2C_IsDeviceReady

Function Name

HAL_StatusTypeDef HAL_FMPI2C_IsDeviceReady

 

(FMPI2C_HandleTypeDef * hfmpi2c, uint16_t DevAddress,

 

uint32_t Trials, uint32_t Timeout)

Function Description

Checks if target device is ready for communication.

Parameters

 

hfmpi2c: : Pointer to a FMPI2C_HandleTypeDef structure

 

 

that contains the configuration information for the specified

 

 

FMPI2C.

 

 

DevAddress: Target device address

 

 

Trials: Number of trials

 

 

Timeout: Timeout duration

Return values

 

HAL status

Notes

 

This function is used with Memory devices

23.2.27HAL_FMPI2C_EV_IRQHandler

Function Name

void HAL_FMPI2C_EV_IRQHandler (FMPI2C_HandleTypeDef *

 

hfmpi2c)

Function Description

This function handles FMPI2C event interrupt request.

Parameters

 

hfmpi2c: : Pointer to a FMPI2C_HandleTypeDef structure

 

 

that contains the configuration information for the specified

 

 

FMPI2C.

Return values

 

None

23.2.28HAL_FMPI2C_ER_IRQHandler

Function Name

void HAL_FMPI2C_ER_IRQHandler (FMPI2C_HandleTypeDef *

 

hfmpi2c)

Function Description

This function handles FMPI2C error interrupt request.

Parameters

hfmpi2c: : Pointer to a FMPI2C_HandleTypeDef structure

 

that contains the configuration information for the specified

338/900

DOCID025834 Rev 2

UM1725

HAL FMPI2C Generic Driver

 

FMPI2C.

Return values

None

23.2.29HAL_FMPI2C_MasterTxCpltCallback

Function Name

void HAL_FMPI2C_MasterTxCpltCallback

 

(FMPI2C_HandleTypeDef * hfmpi2c)

Function Description

Master Tx Transfer completed callbacks.

Parameters

 

hfmpi2c: : Pointer to a FMPI2C_HandleTypeDef structure

 

 

that contains the configuration information for the specified

 

 

FMPI2C.

Return values

 

None

23.2.30HAL_FMPI2C_MasterRxCpltCallback

Function Name

void HAL_FMPI2C_MasterRxCpltCallback

 

(FMPI2C_HandleTypeDef * hfmpi2c)

Function Description

Master Rx Transfer completed callbacks.

Parameters

 

hfmpi2c: : Pointer to a FMPI2C_HandleTypeDef structure

 

 

that contains the configuration information for the specified

 

 

FMPI2C.

Return values

 

None

23.2.31HAL_FMPI2C_SlaveTxCpltCallback

Function Name

void HAL_FMPI2C_SlaveTxCpltCallback

 

(FMPI2C_HandleTypeDef * hfmpi2c)

Function Description

Slave Tx Transfer completed callbacks.

Parameters

 

hfmpi2c: : Pointer to a FMPI2C_HandleTypeDef structure

 

 

that contains the configuration information for the specified

 

 

FMPI2C.

Return values

 

None

23.2.32HAL_FMPI2C_SlaveRxCpltCallback

Function Name

void HAL_FMPI2C_SlaveRxCpltCallback

 

(FMPI2C_HandleTypeDef * hfmpi2c)

Function Description

Slave Rx Transfer completed callbacks.

Parameters

 

hfmpi2c: : Pointer to a FMPI2C_HandleTypeDef structure

 

 

that contains the configuration information for the specified

 

 

FMPI2C.

Return values

 

None

23.2.33HAL_FMPI2C_MemTxCpltCallback

Function Name

void HAL_FMPI2C_MemTxCpltCallback

 

 

(FMPI2C_HandleTypeDef * hfmpi2c)

 

 

DOCID025834 Rev 2

339/900

HAL FMPI2C Generic Driver

 

UM1725

Function Description

Memory Tx Transfer completed callbacks.

Parameters

 

hfmpi2c: : Pointer to a FMPI2C_HandleTypeDef structure

 

 

that contains the configuration information for the specified

 

 

FMPI2C.

Return values

 

None

23.2.34HAL_FMPI2C_MemRxCpltCallback

Function Name

void HAL_FMPI2C_MemRxCpltCallback

 

(FMPI2C_HandleTypeDef * hfmpi2c)

Function Description

Memory Rx Transfer completed callbacks.

Parameters

 

hfmpi2c: : Pointer to a FMPI2C_HandleTypeDef structure

 

 

that contains the configuration information for the specified

 

 

FMPI2C.

Return values

 

None

23.2.35HAL_FMPI2C_ErrorCallback

Function Name

void HAL_FMPI2C_ErrorCallback (FMPI2C_HandleTypeDef *

 

hfmpi2c)

Function Description

FMPI2C error callbacks.

Parameters

 

hfmpi2c: : Pointer to a FMPI2C_HandleTypeDef structure

 

 

that contains the configuration information for the specified

 

 

FMPI2C.

Return values

 

None

23.2.36HAL_FMPI2C_GetState

Function Name

HAL_FMPI2C_StateTypeDef HAL_FMPI2C_GetState

 

(FMPI2C_HandleTypeDef * hfmpi2c)

Function Description

Returns the FMPI2C state.

Parameters

 

hfmpi2c: : FMPI2C handle

Return values

 

HAL state

23.2.37HAL_FMPI2C_GetError

Function Name

uint32_t HAL_FMPI2C_GetError (FMPI2C_HandleTypeDef *

 

hfmpi2c)

Function Description

Return the FMPI2C error code.

Parameters

 

hfmpi2c: : pointer to a FMPI2C_HandleTypeDef structure

 

 

that contains the configuration information for the specified

 

 

FMPI2C.

Return values

 

FMPI2C Error Code

340/900

DOCID025834 Rev 2

Соседние файлы в предмете [НЕСОРТИРОВАННОЕ]