need help on understanding RMT example

manoj15
Posts: 8
Joined: Mon Apr 22, 2019 6:40 pm

need help on understanding RMT example

Postby manoj15 » Fri May 10, 2019 12:13 pm

Code: Select all



	 rmt_item32_t* item = (rmt_item32_t*) xRingbufferReceive(rb, &rx_size, 1000);
	 
	 int res = nec_parse_items(item + offset, rx_size / 4 - offset, &rmt_addr, &rmt_cmd);
 
 
understand that rx_size contains the received RMT item length, what is the reason of it to get divide by 4 ?

ESP_houwenxiang
Posts: 118
Joined: Tue Jun 26, 2018 3:09 am

Re: need help on understanding RMT example

Postby ESP_houwenxiang » Thu May 16, 2019 4:31 am

Hi,
A `rmt_item32_t` type element is 4 byte. So the element number is `rx_size / 4`.
wookooho

Who is online

Users browsing this forum: Baidu [Spider] and 240 guests