(value byte)
| 549 | } |
| 550 | |
| 551 | func (t *Triangle) writeControl(value byte) { |
| 552 | t.lengthEnabled = (value>>7)&1 == 0 |
| 553 | t.counterPeriod = value & 0x7F |
| 554 | } |
| 555 | |
| 556 | func (t *Triangle) writeTimerLow(value byte) { |
| 557 | t.timerPeriod = (t.timerPeriod & 0xFF00) | uint16(value) |
nothing calls this directly
no outgoing calls
no test coverage detected