summaryrefslogtreecommitdiff
path: root/util/intelp2m/fields/fields.go
blob: d2ca0e8d80e45445e5944d7728eaa7c17f03adc1 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
package fields

import "../config"
import "../platforms/common"

import "./fsp"
import "./cb"
import "./raw"

// InterfaceSet - set the interface for decoding configuration
// registers DW0 and DW1.
func InterfaceGet() common.Fields {
	var fldstylemap = map[uint8]common.Fields{
		config.NoFlds  : cb.FieldMacros{}, // analyze fields using cb macros
		config.CbFlds  : cb.FieldMacros{},
		config.FspFlds : fsp.FieldMacros{},
		config.RawFlds : raw.FieldMacros{},
	}
	return fldstylemap[config.FldStyleGet()]
}