Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Diff: RN52.h
- Revision:
- 6:c454f88524d6
- Parent:
- 5:8e468fef2754
- Child:
- 7:2df2c6e8c0df
--- a/RN52.h Mon Jan 11 20:49:59 2016 +0000 +++ b/RN52.h Wed Jan 13 22:11:50 2016 +0000 @@ -1,6 +1,7 @@ #ifndef RN52_H #define RN52_H +#define STRING_BUFFER_LENGTH 255 typedef enum { @@ -54,7 +55,14 @@ bool media_connected; bool phone_connected; RN52_CONNECTION connection; - char response[40]; + char title[STRING_BUFFER_LENGTH]; + char artist[STRING_BUFFER_LENGTH]; + char album[STRING_BUFFER_LENGTH]; + char genre[STRING_BUFFER_LENGTH]; + int duration; + int track_number; + int track_count; + char response[STRING_BUFFER_LENGTH]; } RN52_RESULT; @@ -78,6 +86,7 @@ bool maxvolume(); bool get(RN52_COMMAND cmd, RN52_RESULT * rn52_result); bool capture_response(char * str); + void clear_serial(); }; #endif \ No newline at end of file