MCPcopy Create free account
hub / github.com/MCUdude/MicroCore / read

Method read

avr/libraries/Flash/src/Flash.cpp:80–83  ·  view source on GitHub ↗

* @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 */

Source from the content-addressed store, hash-verified

78 * @return uint8_t 8-bit value
79 */
80uint8_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

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected