diff options
| author | J08nY | 2019-11-26 20:37:19 +0100 |
|---|---|---|
| committer | J08nY | 2019-11-26 20:37:19 +0100 |
| commit | bb00fee9702155586e674b9d6a3b838bd54baac2 (patch) | |
| tree | cc35efecb92ae20dbab88694737a6b7d53a62782 /pyecsca/codegen/simpleserial/simpleserial.h | |
| parent | 6784477dfc8f34f8d1a262517fe83ae70a59b325 (diff) | |
| download | pyecsca-codegen-bb00fee9702155586e674b9d6a3b838bd54baac2.tar.gz pyecsca-codegen-bb00fee9702155586e674b9d6a3b838bd54baac2.tar.zst pyecsca-codegen-bb00fee9702155586e674b9d6a3b838bd54baac2.zip | |
Add ASN.1 parsing and more utility functions, + commands sketch.
Diffstat (limited to 'pyecsca/codegen/simpleserial/simpleserial.h')
| -rw-r--r-- | pyecsca/codegen/simpleserial/simpleserial.h | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/pyecsca/codegen/simpleserial/simpleserial.h b/pyecsca/codegen/simpleserial/simpleserial.h index fa64865..a5dff81 100644 --- a/pyecsca/codegen/simpleserial/simpleserial.h +++ b/pyecsca/codegen/simpleserial/simpleserial.h @@ -6,6 +6,9 @@ #include <stdint.h> +#define MAX_SS_CMDS 26 +#define MAX_SS_LEN 512 + // Set up the SimpleSerial module // This prepares any internal commands void simpleserial_init(void); @@ -32,7 +35,7 @@ int simpleserial_addcmd(char c, unsigned int len, uint8_t (*fp)(uint8_t*, uint16 // - First character didn't match any known commands // - One of the characters wasn't in [0-9|A-F|a-f] // - Data was too short or too long -void simpleserial_get(void); +int simpleserial_get(void); // Write some data to the serial port // Prepends the character c to the start of the line |
