It is a generic term for electronic devices fitted to the layout or within an item of rolling-stock, which controls various elements depending on its type. Decoders usually fall under 3 categories: Mobile decoder, Function decoder and accessory decoder. A sound decoder may be considered a 4th category.