You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
30 lines
396 B
30 lines
396 B
7 years ago
|
//
|
||
|
// Created by MightyPork on 2017/09/04.
|
||
|
//
|
||
|
|
||
|
#ifndef ESPTERM_JSTRING_H
|
||
|
#define ESPTERM_JSTRING_H
|
||
|
|
||
|
#include <esp8266.h>
|
||
|
|
||
|
typedef struct {
|
||
|
u8 lsb;
|
||
|
u8 msb;
|
||
|
} WordB2;
|
||
|
|
||
|
typedef struct {
|
||
|
u8 lsb;
|
||
|
u8 msb;
|
||
|
u8 xsb;
|
||
|
} WordB3;
|
||
|
|
||
|
void encode2B(u16 number, WordB2 *stru);
|
||
|
|
||
|
void encode3B(u32 number, WordB3 *stru);
|
||
|
|
||
|
u16 parse2B(const char *str);
|
||
|
|
||
|
u32 parse3B(const char *str);
|
||
|
|
||
|
#endif //ESPTERM_JSTRING_H
|