All registers in the AT86RF230 are 8 bit wide and they can be accessed with a single SPI command (see AT86RF230 data sheet) which is implemented in the functions trx_reg_read and trx_reg_write. The RG_<XYZ> macros contain the addresses of all registers.
For some of the sub registers, there exist predefined constants which assign symbolic names to numeric values (e.g. TRX_OFF, PLL_ON, RX_ON and SLEEP as state names for the sub register SR_TRX_STATUS).
#define SR_TRX_STATUS 0x01, 0x1f, 0
-------------------------------
| Register 0x01: RG_TRX_STATUS |
--- --- --- --- --- --- --- ---
| | | | v v v v v |
--- --- --- --- --- --- --- ---
7 6 5 4 3 2 1 0
[===================]---> SR_TRX_STATUS
offset = 0x01
mask = 0x1f
shift = 0
#define SR_TX_AUTO_CRC_ON 0x05, 0x80, 7
-------------------------------
| Register 0x05: RG_PHY_TX_PWR |
--- --- --- --- --- --- --- ---
| v | | | | | | | |
--- --- --- --- --- --- --- ---
7 6 5 4 3 2 1 0
[===]-------------------------------> SR_TX_AUTO_CRC_ON
offset = 0x05
mask = 0x80
shift = 7
1.5.2