Arianna autonomous DAQ firmware
Dependencies: mbed SDFileSystemFilinfo AriSnProtocol NetServicesMin AriSnComm MODSERIAL PowerControlClkPatch DS1820OW
SnBase64.h@84:80b15993944e, 2015-10-30 (annotated)
- Committer:
- uci1
- Date:
- Fri Oct 30 04:49:40 2015 +0000
- Revision:
- 84:80b15993944e
- Parent:
- 3:24c5f0f50bf1
conf v11,12. ip to ints. write 64chr lbl. send status data packs. comm pwr as needed. comm each evt. conn/list TO separate afar, sbd. calc FFT, L1 trigger, L1 scaledown. pre-compl opts in own file. max comm fail 75. htbt and clock frames store vars.
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
uci1 | 1:e392595b4b76 | 1 | #ifndef BASE64_H |
uci1 | 1:e392595b4b76 | 2 | #define BASE64_H |
uci1 | 1:e392595b4b76 | 3 | |
uci1 | 84:80b15993944e | 4 | #if 0 |
uci1 | 84:80b15993944e | 5 | /* |
uci1 | 84:80b15993944e | 6 | |
uci1 | 1:e392595b4b76 | 7 | #include <stdint.h> |
uci1 | 1:e392595b4b76 | 8 | |
uci1 | 1:e392595b4b76 | 9 | //Originaly from Rolf's iputil.h |
uci1 | 1:e392595b4b76 | 10 | |
uci1 | 1:e392595b4b76 | 11 | #define BASE64ENC_LEN(slen) ( ((((slen)-1)/3)+1)<<2 ) |
uci1 | 3:24c5f0f50bf1 | 12 | #define CHARPAD '=' |
uci1 | 1:e392595b4b76 | 13 | |
uci1 | 3:24c5f0f50bf1 | 14 | struct B64 { |
uci1 | 3:24c5f0f50bf1 | 15 | /* modp is faster |
uci1 | 3:24c5f0f50bf1 | 16 | static |
uci1 | 3:24c5f0f50bf1 | 17 | char* base64enc(const char* const input, const uint32_t length, char* output); |
uci1 | 3:24c5f0f50bf1 | 18 | */ |
uci1 | 1:e392595b4b76 | 19 | |
uci1 | 1:e392595b4b76 | 20 | static |
uci1 | 3:24c5f0f50bf1 | 21 | int modp_b64_encode(const char* str, const int len, char* dest); |
uci1 | 1:e392595b4b76 | 22 | |
uci1 | 3:24c5f0f50bf1 | 23 | static |
uci1 | 3:24c5f0f50bf1 | 24 | int modp_b64_decode(const char* src, int len, char* dest); |
uci1 | 1:e392595b4b76 | 25 | }; |
uci1 | 1:e392595b4b76 | 26 | |
uci1 | 84:80b15993944e | 27 | */ |
uci1 | 84:80b15993944e | 28 | |
uci1 | 84:80b15993944e | 29 | #endif // 0 |
uci1 | 84:80b15993944e | 30 | |
uci1 | 1:e392595b4b76 | 31 | #endif |