| 167 | } |
| 168 | |
| 169 | uint8_t ZBS_interface::read_flash(uint16_t addr) { |
| 170 | uint8_t data = 0x00; |
| 171 | send_byte(ZBS_CMD_R_FLASH); |
| 172 | send_byte(addr >> 8); |
| 173 | send_byte(addr); |
| 174 | data = read_byte(); |
| 175 | delayMicroseconds(after_byte_delay); |
| 176 | return data; |
| 177 | } |
| 178 | |
| 179 | void ZBS_interface::write_ram(uint8_t addr, uint8_t data) { |
| 180 | write_byte(ZBS_CMD_W_RAM, addr, data); |
no test coverage detected