Skip to content

Commit be5e0bf

Browse files
committed
Исправления
1 parent d473790 commit be5e0bf

3 files changed

Lines changed: 14 additions & 1 deletion

File tree

csup/csup_defs.hpp

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,13 @@ enum class SystemMsgType : types::u8
4040
* | BALANCED | Both sides decide based on frame ID (lower ID has priority). |
4141
* | PRIORITY_SEND | Always prioritizes sending; ignores incoming conflicting frame. |
4242
* | NON_PRIORITY_SEND | Yields to the other sender when a collision is detected. |
43+
*
44+
* @note Compatibility Table:
45+
* | Mode | Compatible with Modes |
46+
* |-------------------|------------------------|
47+
* | BALANCED | BALANCED |
48+
* | PRIORITY_SEND | NON_PRIORITY_SEND |
49+
* | NON_PRIORITY_SEND | PRIORITY_SEND |
4350
*/
4451
enum class CollisionBehavior : uint8_t
4552
{

csup/transport/transport.hpp

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -104,6 +104,12 @@ class Transport
104104
return csup_config;
105105
}
106106

107+
/** @brief Returns number of bytes available in UART receive buffer. */
108+
types::size available()
109+
{
110+
return uart_.available();
111+
}
112+
107113
/**
108114
* @brief Receives a complete data frame.
109115
*

tests/test_crc.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -82,7 +82,7 @@ TYPED_TEST(CRCTest, Validate_Error)
8282
// ---------- Tests ----------
8383
TEST(CRCTest, CRC16_CCITT_FALSE_Test)
8484
{
85-
types::u8 data[] = {'1', '2', '3', '4', '5', '6', '7', '8', '1'};
85+
types::u8 data[] = {'1', '2', '3', '4', '5', '6', '7', '8', '9'};
8686
BufferView buffer(data, sizeof(data));
8787

8888
auto res = CRC16_CCITT_FALSE::compute(buffer);

0 commit comments

Comments
 (0)