enum gs_usb_breq {
GS_USB_BREQ_HOST_FORMAT = 0,
GS_USB_BREQ_BITTIMING,
GS_USB_BREQ_MODE,
GS_USB_BREQ_BERR,
GS_USB_BREQ_BT_CONST,
GS_USB_BREQ_DEVICE_CONFIG,
GS_USB_BREQ_TIMESTAMP,
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # Create service file | |
| ```bash | |
| [Unit] | |
| Description=can0 | |
| [Service] | |
| ExecStartPre=/sbin/ip link set can0 type can bitrate 125000 restart-ms 100 | |
| ExecStart=/sbin/ip link set can0 up txqueuelen 128 | |
| Restart=on-failure |
See how a minor change to your commit message style can make a difference.
git commit -m"<type>(<optional scope>): <description>" \ -m"<optional body>" \ -m"<optional footer>"
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #include <string.h> | |
| #include <stdio.h> | |
| #include <hwcrypto/aes.h> | |
| /* | |
| For Encryption time: 1802.40us (9.09 MB/s) at 16kB blocks. | |
| */ | |
| static inline int32_t _getCycleCount(void) { | |
| int32_t ccount; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| while (true) { | |
| if (VSCP_ERROR_SUCCESS != (rv = vscphlp_isDataAvailable(handle1, &count))) { | |
| printf("Failed to get available data rv = %d\n", rv); | |
| Sleep(5000); | |
| continue; | |
| } | |
| if (count) { | |
| printf("There is %ud events available\n", rv); | |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| // Enter receive loop | |
| if (VSCP_ERROR_SUCCESS != (rv = vscphlp_enterReceiveLoop(handle1))) { | |
| printf("Failed to enter receive loop rv = %d\n", rv); | |
| } | |
| // | |
| while (true) { | |
| vscpEventEx ex; | |
| if (VSCP_ERROR_SUCCESS == (rv = vscphlp_blockingReceiveEventEx(handle1, &ex, 1000))) { | |
| printf("Event received: Class=%ud Type=%d\n", ex.vscp_class, ex.vscp_type); |
I hereby claim:
- I am grodansparadis on github.
- I am grodansparadis (https://keybase.io/grodansparadis) on keybase.
- I have a public key whose fingerprint is CC68 137E 5F27 3B53 E32F B070 07C7 39B5 ED74 864E
To claim this, I am signing this object: