()
| 421 | ## Read SAMPLE_COUNT register (user register) |
| 422 | # @return SAMPLE_COUNT number of samples stored in FIFO (32-bit) |
| 423 | def rdSAMPLE_COUNT(): |
| 424 | global SAMPLE_COUNT |
| 425 | |
| 426 | logger.debug(f"Fifo Count: {FIFO.count}") |
| 427 | SAMPLE_COUNT = FIFO.count // SAMPLE_SIZE |
| 428 | |
| 429 | return SAMPLE_COUNT |
| 430 | |
| 431 | |
| 432 | ## Read SAMPLE_PORT register (user register) |