flash_driver::protect_check field
Determine if the specific bank is "protected" or not. When called, the driver routine must must perform the required protection check(s) and then set the @c flash_sector::is_protected field for each of the flash bank's sectors. If protection is not implemented, set method to NULL