# opn2_operator_t Union Reference

`#include <genesis.h>`

## Data Fields
u8 | ALL [7]
struct {
union {
u8 freqreg
struct {
u8 fmult:4
u8 detune:3
u8 dummy3:1
} |
} |
union {
u8 tlreg
struct {
u8 totallevel:7
u8 dummy4:1
} |
} |
union {
u8 atkrsreg
struct {
u8 attackrate:5
u8 dummy5:1
u8 ratescale:2
} |
} |
union {
u8 dec1amreg
struct {
u8 decay1rate:5
u8 dummy6:2
u8 amplfo:1
} |
} |
union {
u8 dec2reg
struct {
u8 decay2rate:5
u8 dummy7:3
} |
} |
union {
u8 rellvlreg
struct {
u8 releaserate:4
u8 decaylevel:4
} |
} |
union {
u8 ssgreg
struct {
u8 ssg_hold:1
u8 ssg_toggle:1
u8 ssg_init:1
u8 ssg_enable:1
u8 dummy9:4
} |
} |
}; |

## Field Documentation

struct { ... }

u8 opn2_operator_t::ALL[7]

u8 opn2_operator_t::amplfo

u8 opn2_operator_t::atkrsreg

u8 opn2_operator_t::attackrate

u8 opn2_operator_t::dec1amreg

u8 opn2_operator_t::dec2reg

u8 opn2_operator_t::decay1rate

u8 opn2_operator_t::decay2rate

u8 opn2_operator_t::decaylevel

u8 opn2_operator_t::detune

u8 opn2_operator_t::dummy3

u8 opn2_operator_t::dummy4

u8 opn2_operator_t::dummy5

u8 opn2_operator_t::dummy6

u8 opn2_operator_t::dummy7

u8 opn2_operator_t::dummy9

u8 opn2_operator_t::fmult

u8 opn2_operator_t::freqreg

u8 opn2_operator_t::ratescale

u8 opn2_operator_t::releaserate

u8 opn2_operator_t::rellvlreg

u8 opn2_operator_t::ssg_enable

u8 opn2_operator_t::ssg_hold

u8 opn2_operator_t::ssg_init

u8 opn2_operator_t::ssg_toggle

u8 opn2_operator_t::ssgreg

u8 opn2_operator_t::tlreg

u8 opn2_operator_t::totallevel

The documentation for this union was generated from the following file:

- modules/genesis/genesis.h