Microchip AVR8 用のライブラリを自作する。(FUSE)

出荷時設定(クロック、補正等)などの基本情報はFUSEから得られる。プログラム書き込み時の設定を元にCPUクロックなどはキメキメでもプログラミングできるものの動的にクロック等を知りたい場合はFUSEを読む必要がある。

【OSCクロックの周波数】
static uint32_t Fuse::OSCCFG::frequency();

【DEVICEID/SERNUMのリード】
static uint8_t Sigrow::deviceid(uint8_t index);
static uint8_t Sigrow::sernum(uint8_t index);

【USERROWのリード/ライト】
static uint8_t Userrow::read(uint8_t index);
static void Userrow::write(uint8_t index, uint8_t value);

【ライブラリ】

【関連投稿】
Microchip AVR8 用のライブラリを自作する。(GPIO)
Microchip AVR8 用のライブラリを自作する。(FUSE)
Microchip AVR8 用のライブラリを自作する。(CLOCK)
Microchip AVR8 用のライブラリを自作する。(RESET)
Microchip AVR8 用のライブラリを自作する。(PORTMUX)
Microchip AVR8 用のライブラリを自作する。(USART)
Microchip AVR8 用のライブラリを自作する。(RTC)
Microchip AVR8 用のライブラリを自作する。(TCA)
Microchip AVR8 用のライブラリを自作する。(TCB)
Microchip AVR8 用のライブラリを自作する。(VREF)
Microchip AVR8 用のライブラリを自作する。(DAC)
Microchip AVR8 用のライブラリを自作する。(AC)
Microchip AVR8 用のライブラリを自作する。(ADC)
Microchip AVR8 用のライブラリを自作する。(ZCD)
Microchip AVR8 用のライブラリを自作する。(SPI)
Microchip AVR8 用のライブラリを自作する。(TWI)
Microchip AVR8 用のライブラリを自作する。(YIELD)
Microchip AVR8 用のライブラリを自作する。(CONFIG)