# Time Of Flight Timer

Address | Register Name | Register Write | Register Read | Default | Description
--- | --- | --- | --- | --- | ---
0x40001E00 | TOF_CFG | (21) ERROR_INT_ENABLE | (21) ERROR_INT_ENABLE | 0x0 | Enable the interrupt generation when an error is detected
|  | (20) OVERRUN_INT_ENABLE | (20) OVERRUN_INT_ENABLE | 0x0 | Enable the interrupt generation when a data or average data overrun is detected
|  | (19) AVG_DATA_INT_ENABLE | (19) AVG_DATA_INT_ENABLE | 0x0 | Enable the interrupt generation when a new average data is available
|  | (18) DATA_INT_ENABLE | (18) DATA_INT_ENABLE | 0x0 | Enable the interrupt generation when a new data is available
|  | (17) AVG_DATA_DMA_ENABLE | (17) AVG_DATA_DMA_ENABLE | 0x0 | Enable the DMA request when a new average data is available
|  | (16) DATA_DMA_ENABLE | (16) DATA_DMA_ENABLE | 0x0 | Enable the DMA request when a new data is available
|  | (14:12) AVG_CFG | (14:12) AVG_CFG | 0x0 | Select the amount of data for averaging
|  | (10:8) STOP_SRC | (10:8) STOP_SRC | 0x0 | Select the source of the external stop trigger
|  | (6:4) START_SRC | (6:4) START_SRC | 0x0 | Select the source of the external start trigger
|  | (1:0) CLK_PRESCALE | (1:0) CLK_PRESCALE | 0x0 | Select the time of flight timer clock prescale
0x40001E04 | TOF_CTRL | - | (8) ENABLE_STATUS | 0x0 | Status of the time of flight timer
|  | (4) STOP | - | N/A | Stop the time of flight timer
|  | (3) START | - | N/A | Start the time of flight timer
|  | (2) RESET | - | N/A | Synchronously reset the time of flight timer
|  | (1) DISABLE | - | N/A | Disable the time of flight timer
|  | (0) ENABLE | - | N/A | Enable the time of flight timer
0x40001E08 | TOF_STATUS | - | (23:16) AVG_DATA_STATUS | 0x0 | Average data timer status
|  | - | (13) AVG_DATA_REQ | 0x0 | Indicate that a new average data can be read
|  | - | (12) DATA_REQ | 0x0 | Indicate that a new data can be read
|  | - | (11) BUSY | 0x0 | Indicate if the time of flight timer is idle or busy
|  | - | (10) ERROR | 0x0 | Detect two consecutive start triggers (sticky bit)
|  | - | (9) AVG_DATA_OVERRUN | 0x0 | Indicate that an average data overrun has occurred (sticky bit)
|  | - | (8) DATA_OVERRUN | 0x0 | Indicate that a data overrun has occurred (sticky bit)
|  | (5) AVG_DATA_CLEAR | - | N/A | Clear the average data register and restart the average computation
|  | (4) MAX_DATA_CLEAR | - | N/A | Clear the max data register
|  | (3) MIN_DATA_CLEAR | - | N/A | Clear the min data register
|  | (2) ERROR_CLEAR | - | N/A | Clear the error flag
|  | (1) AVG_DATA_OVERRUN_CLEAR | - | N/A | Clear the average data overrun flag
|  | (0) DATA_OVERRUN_CLEAR | - | N/A | Clear the data overrun flag
0x40001E0C | TOF_LINK_CFG | (16:12) LINK_FORMAT | (16:12) LINK_FORMAT | 0x0 | Configure the link format for BLE link filtering
|  | (8:4) LINK_LABEL | (8:4) LINK_LABEL | 0x0 | Configure the link label for BLE link filtering
|  | (0) LINK_FILTER_EN | (0) LINK_FILTER_EN | 0x0 | Enable the BLE link filtering based on link label and format
0x40001E10 | TOF_DATA | - | (19:0) DATA | 0x0 | Time of flight timer data (unsigned)
0x40001E14 | TOF_MIN_DATA | - | (19:0) MIN_DATA | 0xFFFFF | Time of flight minimum data (unsigned)
0x40001E18 | TOF_MAX_DATA | - | (19:0) MAX_DATA | 0x0 | Time of flight maximum data (unsigned)
0x40001E1C | TOF_AVG_DATA | - | (27:8) AVG_DATA_INT | 0x0 | Time of flight average data (unsigned integer part)
|  | - | (7:0) AVG_DATA_DEC | 0x0 | Time of flight average data (unsigned decimal part)
0x40001EFC | TOF_ID_NUM | - | (15:8) TOF_MAJOR_REVISION | 0x1 | Time of flight timer major revision number
|  | - | (7:0) TOF_MINOR_REVISION | 0x0 | Time of flight timer minor revision number