wayne roberts / SX1232

Dependents:   chat_sx1232

Files at this revision

API Documentation at this revision

Comitter:
dudmuck
Date:
Thu May 02 00:39:38 2013 +0000
Parent:
1:67a841d57890
Commit message:
added SERVICE_TX_DONE

Changed in this revision

sx1232.cpp Show annotated file Show diff for this revision Revisions of this file
sx1232.h Show annotated file Show diff for this revision Revisions of this file
--- a/sx1232.cpp	Wed May 01 23:42:35 2013 +0000
+++ b/sx1232.cpp	Thu May 02 00:39:38 2013 +0000
@@ -116,6 +116,7 @@
                 service_action = SERVICE_READ_FIFO;
             } else if (RegOpMode.bits.Mode == RF_OPMODE_TRANSMITTER) {
                 set_opmode(RF_OPMODE_STANDBY); // this should be quick enough for ISR
+                service_action = SERVICE_TX_DONE;
             }
             break;
         case 1:
--- a/sx1232.h	Wed May 01 23:42:35 2013 +0000
+++ b/sx1232.h	Thu May 02 00:39:38 2013 +0000
@@ -334,8 +334,11 @@
 
 typedef enum {
     SERVICE_NONE = 0,
-    SERVICE_ERROR,    //! 
-    SERVICE_READ_FIFO //! request to call read_fifo()
+    SERVICE_ERROR,
+    //! request to call read_fifo()
+    SERVICE_READ_FIFO,
+    //! notification to application of transmit complete
+    SERVICE_TX_DONE
 } service_action_e;
 
 /** FSK radio transceiver for 800/900MHz.