* @brief Reads a byte from the flash memory * * @param page_number Page number to read * @param address Address in flash page to read * @return uint8_t 8-bit value */
| 78 | * @return uint8_t 8-bit value |
| 79 | */ |
| 80 | uint8_t Flash::read(uint8_t page_number, uint8_t address) |
| 81 | { |
| 82 | return pgm_read_byte(flash_space + page_number * SPM_PAGESIZE + address); |
| 83 | } |
| 84 | |
| 85 | /** |
| 86 | * @brief Returns the actual flash memory address for a particular byte in a page |
nothing calls this directly
no outgoing calls
no test coverage detected