gs_usb.h: document GS_CAN_MODE_BERR_REPORTING

In commit
1f1835264d
[1] Bus Error Reporting has been added to the Linux driver. Document
this bit here accordingly.

The new feature ("GS_CAN_FEATURE_BERR_REPORTING") indicates that the
bus error reporting in the CAN controller can switched on and off with
the GS_CAN_MODE_BERR_REPORTING mode bit in the GS_USB_BREQ_MODE
control message.

[1] https://git.kernel.org/torvalds/c/1f1835264d81da03fcd05646542a622678b379d6
This commit is contained in:
Marc Kleine-Budde 2022-10-31 14:01:32 +01:00
parent e4b7a7a1fb
commit ad2f13ace7

View File

@ -49,6 +49,7 @@ THE SOFTWARE.
/* #define GS_CAN_FEATURE_REQ_USB_QUIRK_LPC546XX (1<<9) */
/* #define GS_CAN_FEATURE_BT_CONST_EXT (1<<10) */
/* #define GS_CAN_FEATURE_TERMINATION (1<<11) */
#define GS_CAN_MODE_BERR_REPORTING (1<<12)
#define GS_CAN_FEATURE_LISTEN_ONLY (1<<0)
#define GS_CAN_FEATURE_LOOP_BACK (1<<1)
@ -74,6 +75,7 @@ THE SOFTWARE.
* - struct gs_device_termination_state
*/
#define GS_CAN_FEATURE_TERMINATION (1<<11)
#define GS_CAN_FEATURE_BERR_REPORTINGBIT (1<<12)
#define GS_CAN_FLAG_OVERFLOW (1<<0)
#define GS_CAN_FLAG_FD (1<<1) /* is a CAN-FD frame */