23#ifndef NILE_MCU_SYSTEM_H_
24#define NILE_MCU_SYSTEM_H_
int16_t nile_mcu_native_recv_cmd(void __far *buffer, uint16_t buflen)
Receive the response of a "native protocol" MCU command synchronously.
#define NILE_MCU_NATIVE_CMD(cmd, arg)
static int16_t nile_mcu_native_send_cmd(uint16_t cmd, const void __far *buffer, int buflen)
Send a "native protocol" MCU command asynchronously.
@ NILE_MCU_NATIVE_CMD_REG_WRITE
@ NILE_MCU_NATIVE_CMD_FREQ
@ NILE_MCU_NATIVE_CMD_VERSION
@ NILE_MCU_NATIVE_CMD_SET_SAVE_ID
@ NILE_MCU_NATIVE_CMD_MODE
@ NILE_MCU_NATIVE_CMD_INFO
@ NILE_MCU_NATIVE_CMD_GET_SAVE_ID
@ NILE_MCU_NATIVE_CMD_REG_READ
static int16_t nile_mcu_native_mcu_get_version_sync(void __far *buffer, uint16_t buflen)
static int16_t nile_mcu_native_mcu_spi_set_speed_sync(uint8_t speed)
Tell the MCU to operate at a specific SPI speed.
static int16_t nile_mcu_native_mcu_reg_read_sync(uint16_t addr)
static int16_t nile_mcu_native_mcu_get_uuid_sync(void __far *buffer, uint16_t buflen)
static int16_t nile_mcu_native_mcu_get_save_id_sync(uint16_t domain, uint32_t __wf_cram *value)
static int16_t nile_mcu_native_mcu_get_info_sync(void __far *buffer, uint16_t buflen)
static int16_t nile_mcu_native_mcu_reg_write_sync(uint16_t addr, uint16_t value)
static int16_t nile_mcu_native_mcu_switch_mode(uint8_t mode)
Switch the mode in which the MCU is operating.
static int16_t nile_mcu_native_mcu_set_save_id_sync(uint16_t domain, uint32_t value)