| 321 | === {{{get_tx_count}}} === |
| 322 | For the given buffers, get the number of times the TX state machine has run[[BR]] |
| 323 | |
| 324 | |
| 325 | '''Requires BUFF_SEL:''' Yes (Vector notation [RFA, RFB]) |
| 326 | |
| 327 | '''Arguments:''' none |
| 328 | |
| 329 | '''Returns:''' [uint32 BUFFER_COUNTER] |
| 330 | |
| 331 | |
| 332 | |
| 333 | === {{{get_rx_count}}} === |
| 334 | For the given buffers, get the number of times the RX state machine has run [[BR]] |
| 335 | |
| 336 | |
| 337 | '''Requires BUFF_SEL:''' Yes (Vector notation [RFA, RFB]) |
| 338 | |
| 339 | '''Arguments:''' none |
| 340 | |
| 341 | '''Returns:''' [uint32 BUFFER_COUNTER] |
| 342 | |
| 343 | |
| 344 | |
| 345 | === {{{reset_tx_count}}} === |
| 346 | For the given buffers, reset the counter that records the number of times the TX state machine has run [[BR]] |
| 347 | |
| 348 | |
| 349 | '''Requires BUFF_SEL:''' Yes (Vector notation [RFA, RFB]) |
| 350 | |
| 351 | '''Arguments:''' none |
| 352 | |
| 353 | '''Returns:''' [uint32 BUFFER_COUNTER] |
| 354 | |
| 355 | |
| 356 | |
| 357 | === {{{reset_rx_count}}} === |
| 358 | For the given buffers, reset the counter that records the number of times the RX state machine has run [[BR]] |
| 359 | |
| 360 | |
| 361 | '''Requires BUFF_SEL:''' Yes (Vector notation [RFA, RFB]) |
| 362 | |
| 363 | '''Arguments:''' none |
| 364 | |
| 365 | '''Returns:''' [uint32 BUFFER_COUNTER] |
| 366 | |
| 367 | |
419 | | === {{{agc_reset_timeout_value}}} === |
420 | | Gets / Sets the AGC Reset Timeout Value[[BR]] |
421 | | |
422 | | |
423 | | '''Arguments:''' timeout value in usec on write; none on read |
424 | | |
425 | | '''Returns:''' none on write; timeout value in usec on read |
426 | | |
427 | | |
428 | | |
| 459 | === {{{agc_config}}} === |
| 460 | Set the configuration of the AGC[[BR]] |
| 461 | |
| 462 | This function will set the following AGC configuration fields:[[BR]] |
| 463 | - RSSI averaging length |
| 464 | - Voltage DB Adjust |
| 465 | - Initial BB Gain |
| 466 | |
| 467 | |
| 468 | '''Requires BUFF_SEL:''' No |
| 469 | |
| 470 | '''Arguments:''' [[BR]] |
| 471 | - RSSI Averaging length (Integer value in [0, 3])[[BR]] |
| 472 | - Voltage DB Adjust (Integer value in [0, 63])[[BR]] |
| 473 | - Initial BB Gain (RX) (Integer value in [0, 31])[[BR]] |
| 474 | |
| 475 | Returns : None[[BR]] |
| 476 | |
| 477 | |
| 478 | |
| 479 | === {{{agc_iir_hpf}}} === |
| 480 | Set the Infinite Impulse Response (IIR) High Pass Filter (HPF) coefficients[[BR]] |
| 481 | |
| 482 | This function will set the following IIR HPF coefficients:[[BR]] |
| 483 | - A1 |
| 484 | - B0 |
| 485 | |
| 486 | NOTE: By default the reference design uses a filter with a 3 dB cutoff at |
| 487 | 20 kHz with 40 MHz sampling. This results in coefficients:[[BR]] |
| 488 | - A1 = -0.996863331833438[[BR]] |
| 489 | - B0 = 0.99843166591671906[[BR]] |
| 490 | |
| 491 | |
| 492 | '''Requires BUFF_SEL:''' No |
| 493 | |
| 494 | '''Arguments:''' [[BR]] |
| 495 | - A1 coefficient (Value in [-1, 1]; range represented by Fix_18_17)[[BR]] |
| 496 | - B0 coefficient (Value in [0, 2]; range represented by UFix_18_17)[[BR]] |
| 497 | |
| 498 | Returns : None[[BR]] |
| 499 | |
| 500 | |
| 501 | |
| 502 | === {{{agc_rf_gain_threshold}}} === |
| 503 | Set the RF gain thresholds[[BR]] |
| 504 | |
| 505 | This function will set the following fields:[[BR]] |
| 506 | - 3 -> 2 RF gain threshold |
| 507 | - 2 -> 1 RF gain threshold |
| 508 | |
| 509 | After the AGC has converted RSSI to power (dBm), this will select the |
| 510 | the thresholds used to set the RF (LNA) gain in the MAX2829. [[BR]] |
| 511 | |
| 512 | |
| 513 | '''Requires BUFF_SEL:''' No |
| 514 | |
| 515 | '''Arguments:'''[[BR]] |
| 516 | - 3 -> 2 RF gain threshold (Integer value in [-128, 127])[[BR]] |
| 517 | - 2 -> 1 RF gain threshold (Integer value in [-128, 127])[[BR]] |
| 518 | |
| 519 | Returns : None[[BR]] |
| 520 | |
| 521 | |
| 522 | |
| 523 | === {{{agc_timing}}} === |
| 524 | Set the AGC timing[[BR]] |
| 525 | |
| 526 | This function will set the following fields:[[BR]] |
| 527 | - Sample to take first RSSI capture |
| 528 | - Sample to take second RSSI capture |
| 529 | - Sample to take the Voltage DB capture |
| 530 | - Sample to complete the AGC |
| 531 | |
| 532 | |
| 533 | '''Requires BUFF_SEL:''' No |
| 534 | |
| 535 | '''Arguments:'''[[BR]] |
| 536 | - Capture RSSI 1 (Integer value in [0, 255])[[BR]] |
| 537 | - Capture RSSI 2 (Integer value in [0, 255])[[BR]] |
| 538 | - Capture Voltage DB (Integer value in [0, 255])[[BR]] |
| 539 | - AGC Done (Integer value in [0, 255])[[BR]] |
| 540 | |
| 541 | Returns : None[[BR]] |
| 542 | |
| 543 | |
| 544 | |
| 545 | === {{{agc_dco_timing}}} === |
| 546 | Set the AGC DC Offset (DCO) timing[[BR]] |
| 547 | |
| 548 | This function will set the following fields:[[BR]] |
| 549 | - Sample to start the DCO |
| 550 | - Sample to start the IIR HPF |
| 551 | |
| 552 | |
| 553 | '''Requires BUFF_SEL:''' No |
| 554 | |
| 555 | '''Arguments:'''[[BR]] |
| 556 | - Start DCO (Integer value in [0, 255])[[BR]] |
| 557 | - Start IIR HPF (Integer value in [0, 255])[[BR]] |
| 558 | |
| 559 | Returns : None[[BR]] |