Arianna autonomous DAQ firmware
Dependencies: mbed SDFileSystemFilinfo AriSnProtocol NetServicesMin AriSnComm MODSERIAL PowerControlClkPatch DS1820OW
SnBase64.h@110:d1da040a0cf2, 2015-11-24 (annotated)
- Committer:
- uci1
- Date:
- Tue Nov 24 21:52:27 2015 +0000
- Revision:
- 110:d1da040a0cf2
- Parent:
- 84:80b15993944e
Stn32 (slow) with conf name. SD stall fix. No interface chip. Safety nets.
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 |