avr v0.1.0 AVR View Source

AVR is a library to upload a firmware into AVR microcontrollers

Link to this section Summary

Link to this section Types

Link to this type

board_type()

View Source
board_type() ::
  :atmega328 | :atmega328p | :uno | :pro8MHzatmega328p | :pro16MHzatmega328p
Link to this type

upload_opts()

View Source
upload_opts() :: [
  speed: non_neg_integer(),
  programmer: AVR.Programmer.id(),
  gpio_reset: non_neg_integer()
]

Link to this section Functions

Link to this function

update(hex, port, board, opts \\ [])

View Source
update(
  hex :: String.t() | AVR.IHex.t(),
  port :: String.t(),
  board :: board_type(),
  opts :: upload_opts()
) :: :ok | {:error, term()}

See AVR.Flasher.update/4.

Link to this function

upload(hex, port, board, opts \\ [])

View Source
upload(
  hex :: String.t() | AVR.IHex.t(),
  port :: String.t(),
  board :: board_type(),
  opts :: upload_opts()
) :: :ok | {:error, term()}

See AVR.Flasher.upload/4.

Link to this function

verify(hex, port, board, opts \\ [])

View Source
verify(
  hex :: String.t() | AVR.IHex.t(),
  port :: String.t(),
  board :: board_type(),
  opts :: upload_opts()
) :: :ok | {:error, term()}

See AVR.Flasher.verify/4.