/* Build register value of waveform for NEC one data bit.  */
static void nec_fill_item_level(rmt_item32_t *item, int high_us, int low_us)
/* Build register value of waveform for NEC one data bit.  */
static void nec_fill_item_level(rmt_item32_t *item, int high_us, int low_us)
{
    item->level0 = 1;
    item->duration0 = (high_us) / 10 * RMT_TICK_10_US;
    item->level1 = 0;
    item->duration1 = (low_us) / 10 * RMT_TICK_10_US;
}