Functions | |
| void | Cy_ISOUART_NodeConfigSramRowAttr (ISOUART_Type *base, uint32_t index, uint8_t trigIntId, bool isInvalid, bool isReadOnly) |
| Configure iso UART SRAM attributes. More... | |
| void | Cy_ISOUART_HostSetSramSize (ISOUART_Type *base, uint32_t lowSramSize, uint32_t highSramSize) |
| Set SRAM size for data reception. More... | |
| volatile uint32_t * | Cy_ISOUART_HostGetSramBaseAddr (ISOUART_Type *base, cy_en_isouart_interface_side_t iSide) |
| Get iso UART SRAM base address of the specified interface. More... | |
| uint16_t | Cy_ISOUART_ReadSramRow16 (ISOUART_Type *base, uint32_t index) |
| Read a 16-bit data field from the specified iso UART SRAM row. More... | |
| uint32_t | Cy_ISOUART_ReadSramRow32 (ISOUART_Type *base, uint32_t index) |
| Read a 32-bit data from two consecutive iso UART SRAM rows. More... | |
| void | Cy_ISOUART_WriteSramRow16 (ISOUART_Type *base, uint32_t index, uint16_t data) |
| Write a 16-bit value to the data field of the specified iso UART SRAM row. More... | |
| void | Cy_ISOUART_WriteSramRow32 (ISOUART_Type *base, uint32_t index, uint32_t data) |
| Write a 32-bit data to two consecutive iso UART SRAM rows. More... | |
| void | Cy_ISOUART_HostReadSramRaw (ISOUART_Type *base, cy_en_isouart_interface_side_t iSide, uint32_t packetNum, cy_stc_isouart_raw_frame_t *frame) |
| Reads RAW data frames from the iso UART SRAM of specified interface. More... | |
| uint16_t | Cy_ISOUART_HostReadSramUnpack (ISOUART_Type *base, cy_en_isouart_interface_side_t iSide, uint32_t packetNum) |
| Reads UNPACKED data from the iso UART SRAM of specified interface. More... | |
| __STATIC_INLINE void | Cy_ISOUART_EnableEcc (ISOUART_Type *base) |
| Enable ECC for iso UART SRAM. More... | |
| __STATIC_INLINE void | Cy_ISOUART_DisableEcc (ISOUART_Type *base) |
| Disable ECC for iso UART SRAM. More... | |
| void | Cy_ISOUART_EnableEccInjection (ISOUART_Type *base, uint32_t index, uint32_t parity) |
| Enable ECC error injection for iso UART SRAM. More... | |
| void | Cy_ISOUART_DisableEccInjection (ISOUART_Type *base) |
| Disable ECC error injection for iso UART SRAM. More... | |
| void | Cy_ISOUART_GetEccStatus (const ISOUART_Type *base, cy_stc_isouart_ecc_status_t *status) |
| Get ECC status of iso UART SRAM. More... | |
| void Cy_ISOUART_NodeConfigSramRowAttr | ( | ISOUART_Type * | base, |
| uint32_t | index, | ||
| uint8_t | trigIntId, | ||
| bool | isInvalid, | ||
| bool | isReadOnly | ||
| ) |
Configure iso UART SRAM attributes.
| base | The base address for the iso UART. |
| index | Index of iso UART SRAM row. The valid range is 0...127. |
| trigIntId | ID of trigger and interrupt struct to be tied to this SRAM row. The valid range is 0...17. |
| isInvalid | Specifies whether the row is invalid or not. If TRUE, the specified index is marked as invalid. Any access to the invalid row by the host via iso UART will be reported as address error. |
| isReadOnly | Specifies whether the row is read only or not. If TRUE, the specified index is marked as read only. A write access to the read only row by the host via iso UART will be reported as access error. |
| void Cy_ISOUART_HostSetSramSize | ( | ISOUART_Type * | base, |
| uint32_t | lowSramSize, | ||
| uint32_t | highSramSize | ||
| ) |
Set SRAM size for data reception.
The required SRAM size depends on the read command types (read, broadcast read, multi read). This function is intended to be used for re-allocating SRAM size suitable for the read command being sent.
| base | The base address for the iso UART. |
| lowSramSize | SRAM size in low side. The valid range is 0..127. In RAW mode, this parameter must be divisible by 3. |
| highSramSize | SRAM size in high side. The valid range is 0..127. In RAW mode, this parameter must be divisible by 3. |
| volatile uint32_t* Cy_ISOUART_HostGetSramBaseAddr | ( | ISOUART_Type * | base, |
| cy_en_isouart_interface_side_t | iSide | ||
| ) |
Get iso UART SRAM base address of the specified interface.
This is a helper function for combination with DMA.
| base | The base address for the iso UART. |
| iSide | Interface side. See cy_en_isouart_interface_side_t. |
| uint16_t Cy_ISOUART_ReadSramRow16 | ( | ISOUART_Type * | base, |
| uint32_t | index | ||
| ) |
Read a 16-bit data field from the specified iso UART SRAM row.
| base | The base address for the iso UART. |
| index | Index of iso UART SRAM row. The valid range is 0...127. |
| uint32_t Cy_ISOUART_ReadSramRow32 | ( | ISOUART_Type * | base, |
| uint32_t | index | ||
| ) |
Read a 32-bit data from two consecutive iso UART SRAM rows.
The output 32-bit data is configured as follows:
| base | The base address for the iso UART. |
| index | Index of iso UART SRAM row (must be even). The valid range is 0...126, and this parameter must be an even value. |
| void Cy_ISOUART_WriteSramRow16 | ( | ISOUART_Type * | base, |
| uint32_t | index, | ||
| uint16_t | data | ||
| ) |
Write a 16-bit value to the data field of the specified iso UART SRAM row.
| base | The base address for the iso UART. |
| index | Index of iso UART SRAM row. The valid range is 0...127. |
| data | 16-bit value to be written to the SRAM row. |
| void Cy_ISOUART_WriteSramRow32 | ( | ISOUART_Type * | base, |
| uint32_t | index, | ||
| uint32_t | data | ||
| ) |
Write a 32-bit data to two consecutive iso UART SRAM rows.
The input 32-bit data should be configured as follows:
| base | The base address for the iso UART. |
| index | Index of iso UART SRAM row (must be even). The valid range is 0...126, and this parameter must be an even value. |
| data | 32-bit value to be written to two consecutive SRAM rows. |
| void Cy_ISOUART_HostReadSramRaw | ( | ISOUART_Type * | base, |
| cy_en_isouart_interface_side_t | iSide, | ||
| uint32_t | packetNum, | ||
| cy_stc_isouart_raw_frame_t * | frame | ||
| ) |
Reads RAW data frames from the iso UART SRAM of specified interface.
| base | The base address for the iso UART. |
| iSide | Interface side to be read. See cy_en_isouart_interface_side_t. |
| packetNum | Packet number to be read. Valid range is [0, (allocated SRAM size for iSide / 3) - 1]. |
| frame | Pointer to the structure for storing RAW frame data. See cy_stc_isouart_raw_frame_t. |
| uint16_t Cy_ISOUART_HostReadSramUnpack | ( | ISOUART_Type * | base, |
| cy_en_isouart_interface_side_t | iSide, | ||
| uint32_t | packetNum | ||
| ) |
Reads UNPACKED data from the iso UART SRAM of specified interface.
| base | The base address for the iso UART. |
| iSide | Interface side to be read. See cy_en_isouart_interface_side_t. |
| packetNum | Packet number to be read. Valid range is [0, allocated SRAM size for iSide - 1]. |
| __STATIC_INLINE void Cy_ISOUART_EnableEcc | ( | ISOUART_Type * | base | ) |
Enable ECC for iso UART SRAM.
| base | The base address for the iso UART. |
| __STATIC_INLINE void Cy_ISOUART_DisableEcc | ( | ISOUART_Type * | base | ) |
Disable ECC for iso UART SRAM.
| base | The base address for the iso UART. |
| void Cy_ISOUART_EnableEccInjection | ( | ISOUART_Type * | base, |
| uint32_t | index, | ||
| uint32_t | parity | ||
| ) |
Enable ECC error injection for iso UART SRAM.
| base | The base address for the iso UART. |
| index | Index of iso UART SRAM row where an error will be injected. The valid range is 0...127. |
| parity | ECC parity to use for ECC error injection at SRAM index. The valid range is 0...127. During the ECC error injection is enabled, when the SRAM[index] is written, ECC parity is forced to be updated with this value instead of the value calculated by HW. |
| void Cy_ISOUART_DisableEccInjection | ( | ISOUART_Type * | base | ) |
Disable ECC error injection for iso UART SRAM.
| base | The base address for the iso UART. |
| void Cy_ISOUART_GetEccStatus | ( | const ISOUART_Type * | base, |
| cy_stc_isouart_ecc_status_t * | status | ||
| ) |
Get ECC status of iso UART SRAM.
| base | The base address for the iso UART. |
| status | Pointer to a status structure to be filled. See cy_stc_isouart_ecc_status_t. |