rmt: calarify the meaning of mem_block_symbols in DMA and non-DMA mode
This commit is contained in:
@@ -32,7 +32,9 @@ typedef struct {
|
||||
gpio_num_t gpio_num; /*!< GPIO number used by RMT RX channel. Set to -1 if unused */
|
||||
rmt_clock_source_t clk_src; /*!< Clock source of RMT RX channel, channels in the same group must use the same clock source */
|
||||
uint32_t resolution_hz; /*!< Channel clock resolution, in Hz */
|
||||
size_t mem_block_symbols; /*!< Size of memory block, in number of `rmt_symbol_word_t`, must be an even */
|
||||
size_t mem_block_symbols; /*!< Size of memory block, in number of `rmt_symbol_word_t`, must be an even.
|
||||
In the DMA mode, this field controls the DMA buffer size, it can be set to a large value (e.g. 1024);
|
||||
In the normal mode, this field controls the number of RMT memory block that will be used by the channel. */
|
||||
struct {
|
||||
uint32_t invert_in: 1; /*!< Whether to invert the incoming RMT channel signal */
|
||||
uint32_t with_dma: 1; /*!< If set, the driver will allocate an RMT channel with DMA capability */
|
||||
|
||||
@@ -33,7 +33,9 @@ typedef struct {
|
||||
gpio_num_t gpio_num; /*!< GPIO number used by RMT TX channel. Set to -1 if unused */
|
||||
rmt_clock_source_t clk_src; /*!< Clock source of RMT TX channel, channels in the same group must use the same clock source */
|
||||
uint32_t resolution_hz; /*!< Channel clock resolution, in Hz */
|
||||
size_t mem_block_symbols; /*!< Size of memory block, in number of `rmt_symbol_word_t`, must be an even */
|
||||
size_t mem_block_symbols; /*!< Size of memory block, in number of `rmt_symbol_word_t`, must be an even.
|
||||
In the DMA mode, this field controls the DMA buffer size, it can be set to a large value;
|
||||
In the normal mode, this field controls the number of RMT memory block that will be used by the channel. */
|
||||
size_t trans_queue_depth; /*!< Depth of internal transfer queue, increase this value can support more transfers pending in the background */
|
||||
struct {
|
||||
uint32_t invert_out: 1; /*!< Whether to invert the RMT channel signal before output to GPIO pad */
|
||||
|
||||
Reference in New Issue
Block a user