#ifndef LIBPDU_H #define LIBPDU_H #define NPC7 63 class PDU { public: PDU (){ this->tp_dcs_alpha = 0; }; ~PDU (){}; int setText(String); int setSender(String); String encode(void); String decode(String); String decode(String, uint8_t); private: int smsc_length; int smsc_type_of_address; String smsc_number; int sms_deliver; //SMS-DELIVER message int sender_length; int sender_type_of_address; String sender_number; int tp_length; // lenght of data ( dependent of dcs) String tp_data; // the data of the message String tp_text; //--internal use for storing sms text before creating the pdu string int tp_dcs_alpha; //--internal use for storing alphabet size when creating the pdu string String semiOctetToString (String); String stringToSemiOctet (String); int hexStringToInt (String); String intToHexString (int); int binStringToInt (String); String intToBinString (int); int pow(int , int ); String userTextTo7(void); }; #endif //LIBPDU_LIBPDU_H