Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Document new features: Bus Error Reporting and query device state #124

Merged
merged 2 commits into from
Nov 5, 2022
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions include/gs_usb.h
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,8 @@ 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)
/* GS_CAN_FEATURE_GET_STATE (1<<13) */

#define GS_CAN_FEATURE_LISTEN_ONLY (1<<0)
#define GS_CAN_FEATURE_LOOP_BACK (1<<1)
Expand All @@ -74,6 +76,8 @@ 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_FEATURE_GET_STATE (1<<13)

#define GS_CAN_FLAG_OVERFLOW (1<<0)
#define GS_CAN_FLAG_FD (1<<1) /* is a CAN-FD frame */
Expand Down Expand Up @@ -175,6 +179,7 @@ enum gs_usb_breq {
GS_USB_BREQ_BT_CONST_EXT,
GS_USB_BREQ_SET_TERMINATION,
GS_USB_BREQ_GET_TERMINATION,
GS_USB_BREQ_GET_STATE,
};

enum gs_can_mode {
Expand Down