XMOS SliceKit GPIO Gpio Example Applications page 19

Table of Contents

Advertisement

SliceKit GPIO Example Applications
REV A
19/24
c_uartTX
, '\
r ') ;
ua r t_ t x_ s en d_ b yt e
(
c_uartTX
, '\
n ') ;
break ;
case READ_ADC : //
Displays
temperature
value on the
Uart
adc_value
=
rea d_adc_ value
() ;
data_arr
[0]=(
l i n e a r _ i n t e r p o l a t
(
adc_value
) ) ;
uart_tx_string
(
c_uartTX
,
C O NS O LE _ ME S SA G ES
[12])
;
ua r t_ t x_ s en d_ b yt e
(
c_uartTX
, (
data_arr
[0]/10)
+ '0 ')
;
ua r t_ t x_ s en d_ b yt e
(
c_uartTX
, (
data_arr
[0]%10)
+ '0 ')
;
ua r t_ t x_ s en d_ b yt e
(
c_uartTX
,
32) ;
ua r t_ t x_ s en d_ b yt e
(
c_uartTX
, 'C
') ;
break ;
case INVALID : //
Displays
command

Advertisement

Table of Contents
loading

This manual is also suitable for:

Slicekit

Table of Contents