Nano-RK API Contents

  • General Device Drivers
    • int8_t nrk_register_driver(void *devicemanager,uint8_t driver_name)
    • int8_t nrk_open(uint8_t dev_id,uint8_t opt)
    • int8_t nrk_read(uint8_t dev_fd,uint8_t *buffer,uint8_t size)
    • int8_t nrk_write(uint8_t dev_fd,uint8_t *buffer,uint8_t size)
    • int8_t nrk_close(uint8_t dev_fd)
    • int8_t nrk_set_status(uint8_t dev_fd,uint8_t key,uint8_t value)
    • int8_t nrk_get_status(uint8_t dev_fd,uint8_t key)
  • LEDs and General Purpose IO
    • int8_t nrk_led_set( uint8_t num )
    • int8_t nrk_led_clr( uint8_t num )
    • int8_t nrk_gpio_set(uint8_t pin)
    • int8_t nrk_gpio_get(uint8_t pin)
    • int8_t nrk_gpio_clr(uint8_t pin)
    • int8_t nrk_gpio_toggle(uint8_t pin)
    • int8_t nrk_gpio_direction(uint8_t pin, uint8_t pin_direction)
    • int8_t nrk_gpio_pullups(uint8_t enable)
    • void nrk_gpio_raw_set( _port, _pin )
    • void nrk_gpio_raw_clr( _port, _pin )
    • void nrk_gpio_raw_get( _port, _pin )
    • void nrk_gpio_raw_toggle( _port, _pin)
  • Resource Reservations
    • int8_t nrk_cpu_reserve_check(nrk_time_t *reserve)
    • int8_t nrk_reserve_create()
    • int8_t nrk_reserve_delete(uint8_t reserve_id)
    • int8_t nrk_reserve_set(uint8_t id, nrk_time_t *period,int16_t access_count,void *errhandler)
    • uint8_t nrk_reserve_get(uint8_t reserve_id)
    • int8_t nrk_reserve_consume(uint8_t reserve_id)
  • Power (OUT OF DATE)
    • int8_t nrk_voltage_status( void )
    • int8_t nrk_voltage_value( void )
    • void nrk_sleep(void)
    • void nrk_idle(void)
  • Runtime Statistics
    • void nrk_stats_display_all( void )
    • void nrk_stats_display_pid( uint8_t pid )
    • void nrk_stats_reset()
    • int8_t nrk_stats_get(uint8_t pid, nrk_task_stat_t *t)
  • EEPROM
    • uint8_t nrk_eeprom_read_byte( uint16_t addr )
    • int8_t nrk_eeprom_write_byte( uint16_t addr, uint8_t value )