X-Git-Url: https://sigrok.org/gitweb/?a=blobdiff_plain;f=decoders%2Fnrf24l01%2Fpd.py;h=06755ff3495b75f7beb27ba6aa320a7b4abf9d39;hb=499bf266989634a02e33e5361a720f853934fe03;hp=02cdddbce06337be86a436e4c079c226ef3d50b9;hpb=b197383cfb39b39ff04644855eef57f5d3c18bc1;p=libsigrokdecode.git diff --git a/decoders/nrf24l01/pd.py b/decoders/nrf24l01/pd.py index 02cdddb..06755ff 100644 --- a/decoders/nrf24l01/pd.py +++ b/decoders/nrf24l01/pd.py @@ -62,25 +62,26 @@ class Decoder(srd.Decoder): 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')}, ) annotations = ( # Sent from the host to the chip. - ('cmd', 'Commands sent to the device'), - ('tx-data', 'Payload sent to the device'), + ('cmd', 'Command'), + ('tx-data', 'Payload'), # Returned by the chip. - ('register', 'Registers read from the device'), - ('rx-data', 'Payload read from the device'), + ('register', 'Register read'), + ('rx-data', 'Payload read'), - ('warning', 'Warnings'), + ('warning', 'Warning'), ) ann_cmd = 0 ann_tx = 1 @@ -94,6 +95,9 @@ class Decoder(srd.Decoder): ) def __init__(self): + self.reset() + + def reset(self): self.next() self.requirements_met = True self.cs_was_released = False