![XMOS xCORE-200 Multi-channel Audio board Design Manual Download Page 76](http://html2.mh-extra.com/html/xmos/xcore-200-multi-channel-audio-board/xcore-200-multi-channel-audio-board_design-manual_3530329076.webp)
USB Audio Design Guide
h i d D a t a [0] = ( a < < H I D _ C O N T R O L _ V O L U P _ S H I F T ) | ( b < < H I D _ C O N T R O L _ V O L D N _ S H I F T
>
) ;
If the switch input is high (i.e. low when inverted) then the buttons states are
used to either indicate play/pause or next/previous. Based on counter and a small
state-machine a single click on either button provides a play/pause command. A
double tap on button A or B provides a previous or next command respectively.
The full code listing is shown below:
XM0088546.1
Summary of Contents for xCORE-200 Multi-channel Audio board
Page 6: ...1 Overview XM0088546 1...