Home
last modified time | relevance | path

Searched refs:notation_code (Results 1 – 1 of 1) sorted by relevance

/hal_espressif-3.6.0/examples/peripherals/rmt/musical_buzzer/components/musical_buzzer/src/
Dmusical_buzzer_rmt.c45 rmt_item32_t notation_code = {.level0 = 1, .duration0 = 1, .level1 = 0, .duration1 = 1}; in update_notation_freq_duration() local
49 notation_code.duration0 = rmt_buzzer->counter_clk_hz / notation->note_freq_hz / 2; in update_notation_freq_duration()
50 notation_code.duration1 = notation_code.duration0; in update_notation_freq_duration()
55 return notation_code; in update_notation_freq_duration()
70 rmt_item32_t notation_code = update_notation_freq_duration(rmt_buzzer); in buzzer_play() local
72 rmt_write_items(rmt_buzzer->channel, &notation_code, 1, false); in buzzer_play()
100 rmt_item32_t notation_code = update_notation_freq_duration(rmt_buzzer); in rmt_tx_loop_end() local
102 rmt_write_items(rmt_buzzer->channel, &notation_code, 1, false); in rmt_tx_loop_end()