VLCB SDK
An opinionated SDK for VLCB protocol
Loading...
Searching...
No Matches
common/inc/vlcb/common/dcc.h
Go to the documentation of this file.
1#pragma once
2
3#include <stdint.h>
4
5typedef uint8_t VlcbDccSessionNr;
6typedef uint16_t VlcbDccDecoderAddr;
7typedef uint8_t VlcbDccConsistId;
8
9typedef uint8_t VlcbDccLocoState;
16
25
32
36typedef uint8_t VlcbDccError;
@ VLCB_DCC_ERR_LOCO_ADDRESS_IS_TAKEN
@ VLCB_DCC_ERR_SESSION_WAS_CANCELLED
@ VLCB_DCC_ERR_LOCO_WAS_NOT_FOUND
@ VLCB_DCC_ERR_EMPTY_CONSIST
@ VLCB_DCC_ERR_LOCO_STACK_IS_FULL
@ VLCB_DCC_ERR_INVALID_REQUEST
@ VLCB_DCC_ERR_SESSION_IS_NOT_PRESENT
@ VLCB_DCC_ERR_RX_BUFFER_OVERFLOW
uint8_t VlcbDccConsistId
@ VLCB_DCC_LOCLO_FUNC_RANGE_F21_F28
@ VLCB_DCC_LOCO_FUNC_RANGE_F0_F4
@ VLCB_DCC_LOCLO_FUNC_RANGE_F9_F12
@ VLCB_DCC_LOCLO_FUNC_RANGE_F13_F20
@ VLCB_DCC_LOCLO_FUNC_RANGE_F5_F8
uint16_t VlcbDccDecoderAddr
@ VLCB_DCC_LOCO_STATE_CONSIST_MASTER
@ VLCB_DCC_LOCO_STATE_INACTIVE
@ VLCB_DCC_LOCO_STATE_ACTIVE
@ VLCB_DCC_LOCO_STATE_CONSISTED
@ VLCB_DCC_SESSION_QUERY_MODE_DEFAULT
@ VLCB_DCC_SESSION_QUERY_MODE_SHARE
@ VLCB_DCC_SESSION_QUERY_MODE_STEAL
uint8_t VlcbDccSessionNr