Skip to main content

MergModuleType

Enum MergModuleType 

Source
#[repr(u8)]
pub enum MergModuleType {
Show 91 variants SLIM = 0, CANACC4 = 1, CANACC5 = 2, CANACC8 = 3, CANACE3 = 4, CANACE8C = 5, CANLED = 6, CANLED64 = 7, CANACC4_2 = 8, CANCAB = 9, CANCMD = 10, CANSERVO = 11, CANBC = 12, CANRPI = 13, CANTTCA = 14, CANTTCB = 15, CANHS = 16, CANTOTI = 17, CAN8I8O = 18, CANSERVO8C = 19, CANRFID = 20, CANTC4 = 21, CANACE16C = 22, CANIO8 = 23, CANSNDX = 24, CANEther = 25, CANSIG64 = 26, CANSIG8 = 27, CANCOND8C = 28, CANPAN = 29, CANACE3C = 30, CANPanel = 31, CANMIO = 32, CANACE8MIO = 33, CANSOL = 34, CANBIP = 35, CANCDU = 36, CANACC4CDU = 37, CANWiBase = 38, WiCAB = 39, CANWiFi = 40, CANFTT = 41, CANHNDST = 42, CANTCHNDST = 43, CANRFID8 = 44, CANmchRFID = 45, CANPiWi = 46, CAN4DC = 47, CANELEV = 48, CANSCAN = 49, CANMIO_SVO = 50, CANMIO_INP = 51, CANMIO_OUT = 52, CANBIP_OUT = 53, CANASTOP = 54, CANCSB = 55, CANMAG = 56, CANACE16CMIO = 57, CANPiNODE = 58, CANDISP = 59, CANCOMPUTE = 60, CANRC522 = 61, CANINP = 62, CANOUT = 63, CANXIO = 64, CANCABDC = 65, CANRCOM = 66, CANMP3 = 67, CANXMAS = 68, CANSVOSET = 69, CANCMDDC = 70, CANTEXT = 71, CANASIGNAL = 72, CANSLIDER = 73, CANDCATC = 74, CANGATE = 75, CANSINP = 76, CANSOUT = 77, CANSBIP = 78, CANBUFFER = 79, CANLEVER = 80, CANSHIELD = 81, CAN4IN4OUT = 82, CANCMDB = 83, CANPIXEL = 84, CANCABPE = 85, CANSMARTTD = 86, VLCB = 252, CAN_SW = 255, EMPTY = 254, CANUSB = 253,
}
Expand description

MERG Module types

Variants§

§

SLIM = 0

default for SLiM nodes

§

CANACC4 = 1

Solenoid point driver

§

CANACC5 = 2

Motorised point driver

§

CANACC8 = 3

8 digital outputs

§

CANACE3 = 4

Control panel switch/button encoder

§

CANACE8C = 5

8 digital inputs

§

CANLED = 6

64 led driver

§

CANLED64 = 7

64 led driver (multi leds per event)

§

CANACC4_2 = 8

12v version of CANACC4

§

CANCAB = 9

CANCAB hand throttle

§

CANCMD = 10

CANCMD command station

§

CANSERVO = 11

8 servo driver (on canacc8 or similar hardware)

§

CANBC = 12

BC1a command station

§

CANRPI = 13

RPI and RFID interface

§

CANTTCA = 14

Turntable controller (turntable end)

§

CANTTCB = 15

Turntable controller (control panel end)

§

CANHS = 16

Handset controller for old BC1a type handsets

§

CANTOTI = 17

Track occupancy detector

§

CAN8I8O = 18

8 inputs 8 outputs

§

CANSERVO8C = 19

Canservo with servo position feedback

§

CANRFID = 20

RFID input

§

CANTC4 = 21

§

CANACE16C = 22

16 inputs

§

CANIO8 = 23

8 way I/O

§

CANSNDX = 24

§

CANEther = 25

Ethernet interface

§

CANSIG64 = 26

Multiple aspect signalling for CANLED module

§

CANSIG8 = 27

Multiple aspect signalling for CANACC8 module

§

CANCOND8C = 28

Conditional event generation

§

CANPAN = 29

Control panel 32/32

§

CANACE3C = 30

Newer version of CANACE3 firmware

§

CANPanel = 31

Control panel 64/64

§

CANMIO = 32

Multiple I/O – Universal CANMIO firmware

§

CANACE8MIO = 33

Multiple IO module 16 inputs emulating CANACE8C on CANMIO hardware

§

CANSOL = 34

Solenoid driver module

§

CANBIP = 35

Universal CANBIP firmware - Bipolar IO module with additional 8 I/O pins (CANMIO family)

§

CANCDU = 36

Solenoid driver module with additional 6 I/O pins (CANMIO family)

§

CANACC4CDU = 37

CANACC4 firmware ported to CANCDU

§

CANWiBase = 38

CAN to MiWi base station

§

WiCAB = 39

Wireless cab using MiWi protocol

§

CANWiFi = 40

CAN to WiFi connection with Withrottle to CBUS protocol conversion

§

CANFTT = 41

Turntable controller configured using FLiM

§

CANHNDST = 42

Handset (alternative to CANCAB)

§

CANTCHNDST = 43

Touchscreen handset

§

CANRFID8 = 44

multi-channel RFID reader

§

CANmchRFID = 45

either a 2ch or 8ch RFID reader

§

CANPiWi = 46

a Raspberry Pi based module for WiFi

§

CAN4DC = 47

DC train controller

§

CANELEV = 48

Nelevator controller

§

CANSCAN = 49

128 switch inputs

§

CANMIO_SVO = 50

16MHz 25k80 version of CANSERVO8c on CANMIO hardware

§

CANMIO_INP = 51

16MHz 25k80 version of CANACE8MIO on CANMIO hardware

§

CANMIO_OUT = 52

16MHz 25k80 version of CANACC8 on CANMIO hardware

§

CANBIP_OUT = 53

16MHz 25k80 version of CANACC5 on CANBIP hardware

§

CANASTOP = 54

DCC stop generator

§

CANCSB = 55

CANCMD with on board 3A booster

§

CANMAG = 56

Magnet on Track detector

§

CANACE16CMIO = 57

16 input equivaent to CANACE8C

§

CANPiNODE = 58

CBUS module based on Raspberry Pi

§

CANDISP = 59

25K80 version of CANLED64 (IHart and MB)

§

CANCOMPUTE = 60

Compute Event processing engine

§

CANRC522 = 61

Read/Write from/to RC522 RFID tags

§

CANINP = 62

8 inputs module (2g version of CANACE8c) (Pete Brownlow)

§

CANOUT = 63

8 outputs module (2g version of CANACC8) (Pete Brownlow)

§

CANXIO = 64

Extended CANMIO (24 I/O ports) (Pete Brownlow)

§

CANCABDC = 65

DC cab

§

CANRCOM = 66

DC Railcom detector/reader

§

CANMP3 = 67

MP3 sound player in response to events (eg: station announcements) (Duncan Greenwood)

§

CANXMAS = 68

Addressed RGB LED driver (Duncan Greenwood)

§

CANSVOSET = 69

Servo setting box (Duncan Greenwood)

§

CANCMDDC = 70

DC Command station

§

CANTEXT = 71

Text message display

§

CANASIGNAL = 72

Signal controller

§

CANSLIDER = 73

DCC cab with slider control (Dave Radcliffe)

§

CANDCATC = 74

DC ATC module (Dave Harris)

§

CANGATE = 75

Logic module using and/or gates (Phil Silver)

§

CANSINP = 76

Q series PIC input module (Ian Hart)

§

CANSOUT = 77

Q series PIC input module (Ian Hart)

§

CANSBIP = 78

Q series PIC input module (Ian Hart)

§

CANBUFFER = 79

Message buffer (Phil Silver)

§

CANLEVER = 80

Lever frame module (Tim Coombs)

§

CANSHIELD = 81

Kit 110 Arduino shield test firmware

§

CAN4IN4OUT = 82

4 inputs 4 outputs (Arduino module)

§

CANCMDB = 83

CANCMD with built in booster (Simon West)

§

CANPIXEL = 84

neopixel driver (Jon Denham)

§

CANCABPE = 85

Cab2 with pot or encoder (Simon West hardware, Jon Denham new C firmware)

§

CANSMARTTD = 86

Smart train detector (Michael Smith)

§

VLCB = 252

All VLCB modules have the same ID

§

CAN_SW = 255

Software nodes

§

EMPTY = 254

Empty module, bootloader only

§

CANUSB = 253

USB interface

Trait Implementations§

Source§

impl Clone for MergModuleType

Source§

fn clone(&self) -> MergModuleType

Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl Copy for MergModuleType

Source§

impl Debug for MergModuleType

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl Eq for MergModuleType

Source§

impl From<MergModuleType> for u8

Source§

fn from(enum_value: MergModuleType) -> Self

Converts to this type from the input type.
Source§

impl PartialEq for MergModuleType

Source§

fn eq(&self, other: &MergModuleType) -> bool

Tests for self and other values to be equal, and is used by ==.
1.0.0 (const: unstable) · Source§

fn ne(&self, other: &Rhs) -> bool

Tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
Source§

impl StructuralPartialEq for MergModuleType

Source§

impl TryFrom<u8> for MergModuleType

Source§

type Error = TryFromPrimitiveError<MergModuleType>

The type returned in the event of a conversion error.
Source§

fn try_from(number: u8) -> Result<Self, TryFromPrimitiveError<Self>>

Performs the conversion.
Source§

impl TryFromPrimitive for MergModuleType

Source§

impl UnsafeFromPrimitive for MergModuleType

Source§

type Primitive = u8

Source§

unsafe fn unchecked_transmute_from(number: Self::Primitive) -> Self

Transmutes into an enum from its primitive. Read more
Source§

unsafe fn from_unchecked(number: Self::Primitive) -> Self

👎Deprecated since 0.6.0:

Prefer to use unchecked_transmute_from, from_unchecked will be removed in a future release.

Transmutes into an enum from its primitive. Read more

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.