Converts a baud rate to an UBRR register value that can be passed to ttlv_init.
Utility macro that maps a bit number to an integer value with (only) the corresponding bit set to 1.
Converts a given number of CPU clock cycles to the duration in microseconds of that many clock cycles at the current clock frequency (given by the F_CPU macro).
Evaluates to a true value if and only if the I2C module is busy with an ongoing operation.
Evaluates to a true value if and only if the I2C module is initialized and ready to begin a new operation.
The largest valid register bank address.
The largest valid register pair address.
Bit mask for the valid bits of an MCP23018 register address.
Numeric identifier of the P0 potentiometer in an MCP4x device.
Numeric identifier of the P1 potentiometer in an MCP4x device.
Converts a pointer to an arbitrary type into a pointer-to-constant that is compatible with the memory monitor API (a memmon_cptr), without triggering compiler warnings.
Converts a pointer to an arbitrary type into a pointer that is compatible with the memory monitor API (a memmon_ptr), without triggering compiler warnings.
Maximum size in bytes of a monitored memory location.
Converts a duration in microseconds to the number of CPU clock cycles performed during that time at the current clock frequency (given by the F_CPU macro).
Maps task category numbers to the corresponding bit flags.
The CPU clock prescale value of the timer that the scheduler uses to keep track of elapsed time.
The two-logarithm of the CPU clock prescale value of the timer that the scheduler uses to keep track of elapsed time.
Deprecated, kept for backward compatibility.
The maximum number of tasks that can be scheduled simultaneously.
The duration in microseconds of a scheduler tick.
Constructs a sched_time value representing the given duration in smallticks and bigticks.
A sched_time value representing the longest representable duration.
The longest duration representable by a sched_time, in milliseconds (rounded down).
The longest duration representable by a sched_time, in microseconds.
The largest number of smallticks storable in a sched_time, including those stored as bigticks.
Constructs a sched_time value representing the given duration in milliseconds.
Constructs a sched_time value representing the given duration in microseconds.
Evaluates to the duration in milliseconds represented by a given sched_time value.
Evaluates to the duration in microseconds represented by a given sched_time value.
Evaluates to the total number of smallticks stored in a given sched_time value.
A sched_time value representing a zero duration (no time at all).
Integer value with (only) the TCSB sleep bit (see sched_task) set.
True if and only if the sleep bit is set in the specified TCSB value (see sched_task).
Constructs a TCSB value (see sched_task) with the given category number set (the instance number and sleep bit are zero).
Bit mask for the task category number in a TCSB (see sched_task).
This is a special TCSB value (see sched_task) that marks a task as “garbage” when assigned.
Extracts the category number from a TCSB value (see sched_task).
Gets the category number from a TCSB value (see sched_task) as a sched_catflags value.
Extracts the instance number from a TCSB value (see sched_task).
Extracts the sleep bit from a TCSB value (see sched_task).
Convenience macro for constructing a complete TSCB value (see sched_task).
Constructs a TCSB value (see sched_task) with the given instance number set (the category number and sleep bit are zero).
Bit mask for the task instance and category numbers in a TCSB (see sched_task).
Bit mask for the task instance number in a TCSB (see sched_task).
Replaces the category number in a TCSB value (see sched_task).
Replaces the instance number in a TCSB value (see sched_task).
Falling edge flags for I/O port A.
Rising edge flags for I/O port A.
This value can be given to the pin change notification mask arguments of tbouncer_init to indicate that all the pins of the corresponding I/O port should trigger pin change notifications.
Falling edge flags for I/O port B.
Rising edge flags for I/O port B.
Falling edge flags for I/O port C.
Rising edge flags for I/O port C.
Falling edge flags for I/O port D.
Rising edge flags for I/O port D.
Wrapper macro for tbouncer_init.
The number of bits in the tick count field of an I/O pin’s debouncing state variable.
The number of consecutive pin input values (as obtained at each debouncer tick) different from the current debounced value that are required to update the debounced value.
Maximum allowed value of TBOUNCER_NEQ_FOR_UPDATE.
The number of bits in the tick count field of an I/O pin’s debouncing state variable.
The number of debouncer ticks that must pass after a pin value update before the debouncer starts counting consecutive pin input values different from the current debounced value.
Maximum allowed value of TBOUNCER_TICKS_FOR_UPDATE.
Special INM address used for broadcast messages.
True if and only if the current ttlv_recv_header matches an INM_RESULT message with a ttlv_msg_inm_result payload.
True if and only if the current ttlv_recv_header matches a REG_READ message with a ttlv_reg_index payload.
True if and only if the current ttlv_recv_header matches a REG_RW_EXCH message with a ttlv_msg_reg payload.
True if and only if the current ttlv_recv_header matches a REG_TOGGLE message with a ttlv_msg_reg payload.
True if and only if the current ttlv_recv_header matches a REG_WR_EXCH message with a ttlv_msg_reg payload.
True if and only if the current ttlv_recv_header matches a REG_WRITE message with a ttlv_msg_reg payload.
True if and only if the current ttlv_recv_header matches a REGPAIR_READ message with a ttlv_reg_index payload.
True if and only if the current ttlv_recv_header matches a REGPAIR_RW_EXCH message with a ttlv_msg_regpair payload.
True if and only if the current ttlv_recv_header matches a REGPAIR_TOGGLE message with a ttlv_msg_regpair payload.
True if and only if the current ttlv_recv_header matches a REGPAIR_WR_EXCH message with a ttlv_msg_regpair payload.
True if and only if the current ttlv_recv_header matches a REGPAIR_WRITE message with a ttlv_msg_regpair payload.
True if and only if the current ttlv_recv_header matches a RESULT message with a ttlv_result payload.
Evaluates to a true value and only if the specified TLV message type identifier and length match the ones currently stored in ttlv_recv_header.
Converts a pointer to an arbitrary type into a pointer to a constant instance of another arbitrary type, without triggering compiler warnings.
Converts a pointer to an arbitrary type into a pointer to const uint8_t, without triggering compiler warnings.
Converts a pointer to an arbitrary type into a pointer to uint8_t, without triggering compiler warnings.
Evaluates to a true value if and only if at least one received message header (TLV header only in TLV mode, INM+TLV header in INM mode) is currently pending.
Evaluates to a true value if and only if at least one complete received message is currently pending.
Combined size in bytes of an INM header and a TLV header.
Size in bytes of a TLV header.
Evaluates to a true value if and only if the argument is a TTLV error code.
Special INM address representing the local node.
Maximum TTLV message length for large messages.
Largest valid TTLV message type number for large messages.
Maximum TLV length of an INM message handled by the TTLV module.
Maximum TLV length of a plain TLV message handled by the TTLV module.
Largest valid INM address.
Largest valid TTLV message ID.
Maximum TTLV message length for standard messages.
Largest valid TTLV message type number for standard messages.
Smallest valid TTLV message type number for large messages.
Smallest valid TTLV message type number for standard messages.
TTLV message type number reserved for protocol messages.
Converts a pointer to an arbitrary type into a pointer to another arbitrary type, without triggering compiler warnings.
Size in bytes of the TTLV receive buffer.
Defines a static function that uses specified logical register read and write functions to implement the register read-write operation (X = R; R = V; ret X).
Defines a static function that uses specified logical register read and write functions to implement the register toggle operation (R ^= V; ret R).
Defines a static function that uses specified logical register read and write functions to implement the register write-read operation (R = V; ret R).
Defines a static function that uses a specified logical register read function to implement the register pair read operation (ret R).
Defines a static function that uses specified logical register pair read and write functions to implement the register pair read-write operation (X = R; R = V; ret X).
Defines a static function that uses specified logical register pair read and write functions to implement the register pair toggle operation (R ^= V; ret R).
Defines a static function that uses specified logical register pair read and write functions to implement the register pair write-read operation (R = V; ret R).
Defines a static function that uses a specified logical register write function to implement the register pair write operation (R = V).
Size in bytes of the TTLV transmit buffer.
Defines a watchdog-disabling routine that is executed automatically at MCU reset.
Defines a watchdog-disabling routine that is executed automatically at MCU reset.