Type Definition stm32g0::stm32g0c1::fdcan1::tscc::TCP_W

source · []
pub type TCP_W<'a, const O: u8> = FieldWriter<'a, u32, TSCC_SPEC, u8, u8, 4, O>;
Expand description

Field TCP writer - Timestamp counter prescaler Configures the timestamp and timeout counters time unit in multiples of CAN bit times [1 … 16]. The actual interpretation by the hardware of this value is such that one more than the value programmed here is used. In CAN FD mode the internal timestamp counter TCP does not provide a constant time base due to the different CAN bit times between arbitration phase and data phase. Thus CAN FD requires an external counter for timestamp generation (TSS = 10). These are protected write (P) bits, write access is possible only when the bit 1 [CCE] and bit 0 [INIT] of CCCR register are set to 1.