## GNU General Public License for more details.
##
## You should have received a copy of the GNU General Public License
-## along with this program; if not, write to the Free Software
-## Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
+## along with this program; if not, see <http://www.gnu.org/licenses/>.
##
import sigrokdecode as srd
}
class Decoder(srd.Decoder):
- api_version = 2
+ api_version = 3
id = 'nrf24l01'
name = 'nRF24L01(+)'
- longname = 'Nordic Semiconductor nRF24L01/nRF24L01+'
- desc = '2.4GHz transceiver chip.'
+ longname = 'Nordic Semiconductor nRF24L01(+)'
+ desc = '2.4GHz RF transceiver chip.'
license = 'gplv2+'
inputs = ['spi']
- outputs = ['nrf24l01']
+ outputs = []
+ tags = ['IC', 'Wireless/RF']
options = (
{'id': 'chip', 'desc': 'Chip type',
'default': 'nrf24l01', 'values': ('nrf24l01', 'xn297')},
)
def __init__(self):
+ self.reset()
+
+ def reset(self):
self.next()
self.requirements_met = True
self.cs_was_released = False