|
Zephyr API Documentation 4.3.99
A Scalable Open Source RTOS
|
Renesas RX DTC Driver Header File. More...
#include <zephyr/drivers/gpio.h>Go to the source code of this file.
Data Structures | |
| struct | st_transfer_info |
| Transfer information structure. More... | |
| struct | st_transfer_properties |
| Detailed transfer properties. More... | |
| struct | dtc_transfer_status |
| DTC transfer status. More... | |
Macros | |
Renesas RX DTC driver definitions. | |
| #define | DTC_PLACE_IN_SECTION(x) |
| Attribute to place variable in a specific section. | |
| #define | DTC_ALIGN_VARIABLE(x) |
| Attribute to align variable. | |
| #define | DTC_SECTION_ATTRIBUTE DTC_PLACE_IN_SECTION(".dtc_vector_table") |
| DTC vector table section attribute. | |
| #define | DTC_VECTOR_TABLE_ENTRIES (CONFIG_NUM_IRQS) |
| Number of DTC vector entries. | |
| #define | DTC_PRV_ACT_BIT_MASK (1 << 15) |
| DTC Active flag (DTCSTS.ACT) bit mask. | |
| #define | DTC_PRV_VECT_NR_MASK (0x00FF) |
| DTC-Activating Vector Number bits mask. | |
| #define | DTC_PRV_MASK_CRAL (0xFFU) |
| Counter Register A Lower Byte Mask. | |
| #define | DTC_PRV_OFFSET_CRAH (8U) |
| Counter Register A Upper Byte Offset. | |
| #define | DTC_MAX_NORMAL_TRANSFER_LENGTH (0x10000) |
| Max configurable number of transfers in NORMAL MODE. | |
| #define | DTC_MAX_REPEAT_TRANSFER_LENGTH (0x100) |
| Max number of transfers per repeat for REPEAT MODE. | |
| #define | DTC_MAX_BLOCK_TRANSFER_LENGTH (0x100) |
| Max number of transfers per block in BLOCK MODE. | |
| #define | DTC_MAX_BLOCK_COUNT (0x10000) |
| Max configurable number of blocks to transfer in BLOCK MODE. | |
Typedefs | |
| typedef enum e_transfer_addr_mode | transfer_addr_mode_t |
| Transfer address mode. | |
| typedef enum e_transfer_repeat_area | transfer_repeat_area_t |
| Area that repeats during repeat transfer mode. | |
| typedef enum e_transfer_irq | transfer_irq_t |
| Transfer interrupt type. | |
| typedef enum e_transfer_chain_mode | transfer_chain_mode_t |
| typedef enum e_transfer_size | transfer_size_t |
| Transfer data size. | |
| typedef enum e_transfer_mode | transfer_mode_t |
| Transfer mode. | |
| typedef enum e_dtc_act_status | dtc_act_status_t |
| DTC activation status. | |
| typedef struct st_transfer_info | transfer_info_t |
| Transfer information structure. | |
| typedef struct st_transfer_properties | transfer_properties_t |
| Detailed transfer properties. | |
Functions | |
| int | dtc_renesas_rx_off (const struct device *dev) |
| Turn off module DTC. | |
| int | dtc_renesas_rx_on (const struct device *dev) |
| Turn on module DTC. | |
| int | dtc_renesas_rx_configuration (const struct device *dev, uint8_t activation_irq, transfer_info_t *p_info) |
| Configure the p_info state and write p_info to DTC vector table. | |
| int | dtc_renesas_rx_enable_transfer (uint8_t activation_irq) |
| Enable transfer in ICU on this activation source. | |
| int | dtc_renesas_rx_disable_transfer (uint8_t activation_irq) |
| Disable transfer in ICU on this activation source. | |
| int | dtc_renesas_rx_start_transfer (const struct device *dev, uint8_t activation_irq) |
| Start transfers on this activation source. | |
| int | dtc_renesas_rx_stop_transfer (const struct device *dev, uint8_t activation_irq) |
| Stop transfers on this activation source. | |
| int | dtc_renesas_rx_reset_transfer (const struct device *dev, uint8_t activation_irq, void const *p_src, void *p_dest, uint16_t const num_transfers) |
| Reset transfer on this activation source. | |
| void | dtc_renesas_rx_get_transfer_status (const struct device *dev, struct dtc_transfer_status *status) |
| Get status transfer of DTC module and store it into status pointer. | |
| int | dtc_renesas_rx_info_get (const struct device *dev, uint8_t activation_irq, transfer_properties_t *const p_properties) |
| Get information about this transfer and store it into p_properties. | |
| static ALWAYS_INLINE bool | is_valid_activation_irq (uint8_t activation_irq) |
Renesas RX DTC Driver Header File.
| #define DTC_ALIGN_VARIABLE | ( | x | ) |
Attribute to align variable.
| #define DTC_MAX_BLOCK_COUNT (0x10000) |
Max configurable number of blocks to transfer in BLOCK MODE.
| #define DTC_MAX_BLOCK_TRANSFER_LENGTH (0x100) |
Max number of transfers per block in BLOCK MODE.
| #define DTC_MAX_NORMAL_TRANSFER_LENGTH (0x10000) |
Max configurable number of transfers in NORMAL MODE.
Max number of transfers per repeat for REPEAT MODE
| #define DTC_MAX_REPEAT_TRANSFER_LENGTH (0x100) |
Max number of transfers per repeat for REPEAT MODE.
Max number of transfers per block in BLOCK MODE
| #define DTC_PLACE_IN_SECTION | ( | x | ) |
Attribute to place variable in a specific section.
| #define DTC_PRV_ACT_BIT_MASK (1 << 15) |
DTC Active flag (DTCSTS.ACT) bit mask.
| #define DTC_PRV_MASK_CRAL (0xFFU) |
Counter Register A Lower Byte Mask.
| #define DTC_PRV_OFFSET_CRAH (8U) |
Counter Register A Upper Byte Offset.
| #define DTC_PRV_VECT_NR_MASK (0x00FF) |
DTC-Activating Vector Number bits mask.
| #define DTC_SECTION_ATTRIBUTE DTC_PLACE_IN_SECTION(".dtc_vector_table") |
DTC vector table section attribute.
| #define DTC_VECTOR_TABLE_ENTRIES (CONFIG_NUM_IRQS) |
Number of DTC vector entries.
| typedef enum e_dtc_act_status dtc_act_status_t |
DTC activation status.
| typedef enum e_transfer_addr_mode transfer_addr_mode_t |
Transfer address mode.
| typedef enum e_transfer_chain_mode transfer_chain_mode_t |
| typedef struct st_transfer_info transfer_info_t |
Transfer information structure.
| typedef enum e_transfer_irq transfer_irq_t |
Transfer interrupt type.
Interrupt on each transfer.
| typedef enum e_transfer_mode transfer_mode_t |
Transfer mode.
| typedef struct st_transfer_properties transfer_properties_t |
Detailed transfer properties.
| typedef enum e_transfer_repeat_area transfer_repeat_area_t |
Area that repeats during repeat transfer mode.
| typedef enum e_transfer_size transfer_size_t |
Transfer data size.
| enum e_dtc_act_status |
| enum e_transfer_addr_mode |
| enum e_transfer_irq |
| enum e_transfer_mode |
| enum e_transfer_size |
| int dtc_renesas_rx_configuration | ( | const struct device * | dev, |
| uint8_t | activation_irq, | ||
| transfer_info_t * | p_info ) |
Configure the p_info state and write p_info to DTC vector table.
| dev | DTC device instance. |
| activation_irq | activation source. |
| p_info | transfer info. |
| 0 | On success. |
| -EINVAL | if activation source is invalid. |
| int dtc_renesas_rx_disable_transfer | ( | uint8_t | activation_irq | ) |
Disable transfer in ICU on this activation source.
| activation_irq | activation source. |
| 0 | On success. |
| -EINVAL | if activation source is invalid. |
| int dtc_renesas_rx_enable_transfer | ( | uint8_t | activation_irq | ) |
Enable transfer in ICU on this activation source.
| activation_irq | activation source. |
| 0 | On success. |
| -EINVAL | if activation source is invalid. |
| void dtc_renesas_rx_get_transfer_status | ( | const struct device * | dev, |
| struct dtc_transfer_status * | status ) |
Get status transfer of DTC module and store it into status pointer.
| dev | DTC device instance. |
| status | DTC status. |
| int dtc_renesas_rx_info_get | ( | const struct device * | dev, |
| uint8_t | activation_irq, | ||
| transfer_properties_t *const | p_properties ) |
Get information about this transfer and store it into p_properties.
| dev | DTC device instance. |
| activation_irq | Activation source IRQ number. |
| p_properties | Pointer to structure to receive driver-specific transfer properties. |
| 0 | On success. |
| -EINVAL | If activation source is invalid. |
| int dtc_renesas_rx_off | ( | const struct device * | dev | ) |
Turn off module DTC.
| dev | DTC device instance. |
| 0 | On success. |
| int dtc_renesas_rx_on | ( | const struct device * | dev | ) |
Turn on module DTC.
| dev | DTC device instance. |
| 0 | On success. |
| int dtc_renesas_rx_reset_transfer | ( | const struct device * | dev, |
| uint8_t | activation_irq, | ||
| void const * | p_src, | ||
| void * | p_dest, | ||
| uint16_t const | num_transfers ) |
Reset transfer on this activation source.
| dev | DTC device instance. |
| activation_irq | Activation source IRQ number. |
| p_src | Pointer to the source address for the transfer. |
| p_dest | Pointer to the destination address for the transfer. |
| num_transfers | Number of data units to transfer. |
| 0 | On success. |
| -EINVAL | If activation source is invalid. |
Start transfers on this activation source.
| dev | DTC device instance. |
| activation_irq | activation source. |
| 0 | On success. |
| -EINVAL | if activation source is invalid. |
| -EACCES | if this activation source in dtc vector table is not configured. |
Stop transfers on this activation source.
| dev | DTC device instance. |
| activation_irq | activation source. |
| 0 | On success. |
| -EINVAL | if activation source is invalid. |
| -EACCES | if this activation source in dtc vector table is not configured. |
|
static |
< Number of DTC vector entries.