change the am_addr_t to uint16_t