![](/media/cache/img/default_profile.jpg.50x50_q85.jpg)
Arianna autonomous DAQ firmware
Dependencies: mbed SDFileSystemFilinfo AriSnProtocol NetServicesMin AriSnComm MODSERIAL PowerControlClkPatch DS1820OW
SnBase64.h@125:ce4045184366, 2019-06-05 (annotated)
- Committer:
- uci1
- Date:
- Wed Jun 05 17:29:31 2019 +0000
- Revision:
- 125:ce4045184366
- Parent:
- 84:80b15993944e
Added SnRateListner proto-class, publishing this version of the code in order to enable exporting of most recent features.
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 |