;format is
;[section_name]
;key=value
;


;device group format
;[device_group_<group_name>]
;device_name=htc_device_type
;example
;[device_group_rs232]
;rs232_1=serial

[device_group_ambient]
ambient_light_1=integer

[device_group_input]
dig_in0=on-off
dig_in1=on-off
dig_in2=on-off

[device_group_odometer]
odo1=counter

[device_group_output]
dig_out0=on-off
dig_out1=on-off

[device_group_rs232]
rs232_1=serial
rs232_2=serial
rs232_3=serial

[device_group_rs485]
rs485_1=serial
rs485_2=serial
rs485_3=serial
rs485_4=serial

[device_group_j1708]
j1708_2=serial
j1708_5=serial
j1708_6=serial

[device_group_ibis_master]
ibis_master_1=serial
ibis_master_2=serial

[device_group_ibis_slave]
ibis_slave_1=serial
ibis_slave_2=serial

[device_group_uart]
uart1=serial
uart2=serial

[device_group_gps]
gps1=gps

[device_group_modem]
mdm1=modem

[device_group_audio_output]
speaker3=audio
lineout1=audio
speaker3+lineout1=audio

[device_group_network]
eth0=network
eth1=network
wlan0=network
wwan0=network

[device_group_can]
can0=can

[device_group_rtc]
rtc1=rtc
rtc2=rtc

[device_group_stdio]
stdin=term
stdout=term
stderr=term

[device_group_ambient_mic]
speaker_as_mic=integer
dedicated_mic=integer

;
; Port Mappings are possible device names can be associated with a port
; format
;     [port_mappings]
;     port-id=device_name|device_name - when multiple devices mapped to a port
;     port-id=device_name - single device mapped to a port
;
; examples
; 0=rs232_1
; 1=rs485_1|j1708_1
;
; IMPORTANT
; Values are case sensitive. No spaces between device names or the delimiters
; No Duplicate port IDs

[port_mappings]
1=rs485_1
2=rs485_2|j1708_2
3=rs232_1
4=rs232_2|rs485_3|j1708_5|ibis_master_1|ibis_slave_1
5=rs232_3|rs485_4|j1708_6|ibis_master_2|ibis_slave_2

;
; CAN port Mappings are possible device names can be associated with a port
; format
;     [can_mappings]
;     port-id=device_name
;     port-id=device_name
;
; examples
; 1=can0
; 2=can2
;
; IMPORTANT
; Values are case sensitive. No spaces between device names or the delimiters
; No Duplicate port IDs

[can_mappings]
1=can0

;
; Digital Input Mappings
;
; NOTE
; The input mapping below is intentional to make the digital input software name to
; physical connector pin conistent with EG3.
;
; The mapping for both the EG3 and EG4 are:
;
; I0 -> pin 6 (and pin 14 on EG4)
; I1 -> pins 7 and 16
; I2 -> pins 5 and 15
[digital_input_mappings]
0=dig_in0
1=dig_in1
2=dig_in2

;
; Digital output Mappings
;
[digital_output_mappings]
0=dig_out0
1=dig_out1

;
; Audio output sections
;
[audio_output_details]
device_tag=0
device_name=speaker3
use_internal_amplifier=1

[audio_output_details]
device_tag=1
device_name=lineout1
use_internal_amplifier=1

[audio_output_details]
device_tag=2
device_name=speaker3+lineout1
use_internal_amplifier=1
use_external_amplifier=1

[audio_player]
id=0
sound_card=1
default=1

;
; Ambient Mic
; id='unique id for the ambient mic'
; device_name='ambient mic htc device name'
; associated_audio_output= 'audio output assoicated with the ambient mic' (optional)
;
[ambient_mic]
id=0
device_name=speaker_as_mic
associated_audio_output=0

[ambient_mic]
id=1
device_name=dedicated_mic
