[[ファームウェア関数一覧>ファームウェア関数一覧#udd0c846]] *FLASH_GetUserOptionByte [#p33d5ba9] #contents **ヘッダ宣言 [#rf3e119b] **関数プロトタイプ [#sac6d57f] uint_32 FLASH_GetUserOptionByte(void) **動作 [#b2358124] フラッシュメモリのユーザ・オプション・バイト: IWDG_SW,RST_STOP,RST_STDBY を読み出します ***必要な前提条件 [#nabf5af3] 無し **引数 [#y88aa325] -無し **戻り値 [#a8eb6b66] -32bit符号無し&br; 読取結果を返します |bit0|:IWDG((Internal WatchDoG))_SW| |bit1|RST_STOP| |bit2|RST_STDBY| **サンプル [#kf21b0a0] /* Gets the user option byte values */ u32 UserByteValue = 0x0; u32 IWDGValue = 0x0, RST_STOPValue = 0x0, RST_STDBYValue = 0x0; UserByteValue = FLASH_GetUserOptionByte(); IWDGValue = UserByteValue & 0x0001; RST_STOPValue = UserByteValue & 0x0002; RST_STDBYValue = UserByteValue & 0x0004; **注意書き [#w10e3fd9] **参照 [#m024a24b] -初期化([[RCC_Configuration]])&br; [[FLASH_PrefetchBufferCmd]]→[[FLASH_SetLatency]] -一般的な書き込み方法&br; [[FLASH_Unlock]]→[[FLASH_ClearFlag]]→[[FLASH_ErasePage]]→[[FLASH_ProgramWord]]→[[FLASH_Lock]]