Oscillator Accuracy (in PPM)

nRF5 SDK v16.0.0

Enumerations

enum PPM_CMD {
PPM_CMD_READ_FEATURES = 0x01,
PPM_CMD_READ_VAL = 0x02,
PPM_CMD_WRITE_VAL = 0x03
}
Command codes for PPM. More...
enum PPM_RSP {
PPM_RSP_READ_FEATURES_OK = 0x01,
PPM_RSP_READ_VAL_OK = 0x02,
PPM_RSP_WRITE_VAL_OK = 0x03
}
: Response codes from PPM More...

Detailed Description

  • PPM is the feature to read and write PPM accuracy
  • Errors for PPM are returned as TOA_RSP_ERROR_UNSUPPORTED or TOA_RSP_ERROR_PARAMETERS errors There is no enum defined in our code for PPM values. The mapping is as follows:
    Value PPM
    0x00 PPM reporting is not supported
    0x06 Crystal oscillator 500 PPM accuracy.
    0x07 Crystal oscillator 250 PPM accuracy.
    0x08 Crystal oscillator 150 PPM accuracy.
    0x09 Crystal oscillator 100 PPM accuracy.
    0x0a Crystal oscillator 75 PPM accuracy.
    0x0b Crystal oscillator 50 PPM accuracy.
    0x0c Crystal oscillator 30 PPM accuracy.
    0x0d Crystal oscillator 20 PPM accuracy.

Enumeration Type Documentation

Command codes for PPM.

Enumerator
PPM_CMD_READ_FEATURES

PPM Read supported features

PPM_CMD_READ_VAL

PPM Read current value

PPM_CMD_WRITE_VAL

PPM Write new value (1 byte)

: Response codes from PPM

Enumerator
PPM_RSP_READ_FEATURES_OK

Parameter is a 1 byte a bitfield with bit 0 indicating read supported and bit 1 indicating write supported

PPM_RSP_READ_VAL_OK

Parameter is the current PPM value. It is a 1 byte value

PPM_RSP_WRITE_VAL_OK

Parameter is the current PPM value. It is a 1 byte value