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.
Fork of d7a_1x by
Diff: include/d7a.h
- Revision:
- 49:81d5bddb02f0
- Parent:
- 48:950406be9810
- Child:
- 50:30440c9aeb7c
--- a/include/d7a.h Fri Sep 02 10:07:12 2016 +0000 +++ b/include/d7a.h Fri Sep 02 16:08:09 2016 +0000 @@ -161,6 +161,8 @@ uint16_t rx_buffer_size; } d7a_com_config_t; + + typedef uint32_t (*WriteFileFunction)( const uint8_t file_id, const uint16_t offset, const uint16_t size, @@ -184,9 +186,9 @@ WriteFileFunction write_file; /// Read from local file ReadFileFunction read_file; - /// Is call when the notification is finished if indicated in the retry policy + /// Is called when the notification is finished (depending on the retry policy) NotifDoneFunction notif_done; -} d7a_fs_callbacks_t; +} d7a_callbacks_t; //====================================================================== // fw_version_t @@ -312,7 +314,7 @@ /// @param d7a_fs_callbacks_t* File system callbacks (You cannot use local files if this is not specified) /// @return d7a_errors_t Error code //====================================================================== -d7a_errors_t d7a_open(const d7a_com_config_t* com_config, PinName reset_pin = NC, const d7a_fs_callbacks_t* fs_callbacks = NULL); +d7a_errors_t d7a_open(const d7a_com_config_t* com_config, PinName reset_pin, const d7a_callbacks_t* callbacks); //====================================================================== // d7a_close