SimAVR
AVR Simulator
|
#include <stdio.h>
#include <stdlib.h>
#include "avr_bitbang.h"
#include "avr_ioport.h"
#include "sim_core.h"
#include "sim_regbit.h"
Macros | |
#define | __AVR_BITBANG_H__ |
#define | BITBANG_MASK 0xFFFFFFFFUL |
Functions | |
static void | avr_bitbang_read_bit (avr_bitbang_t *p) |
read (sample) data from input pin More... | |
static void | avr_bitbang_write_bit (avr_bitbang_t *p) |
write data to output pin More... | |
static void | avr_bitbang_clk_edge (avr_bitbang_t *p) |
process clock edges (both: positive and negative edges) More... | |
static avr_cycle_count_t | avr_bitbang_clk_timer (struct avr_t *avr, avr_cycle_count_t when, void *param) |
static void | avr_bitbang_clk_hook (struct avr_irq_t *irq, uint32_t value, void *param) |
void | avr_bitbang_reset (avr_t *avr, avr_bitbang_t *p) |
reset bitbang sub-module More... | |
void | avr_bitbang_start (avr_bitbang_t *p) |
start bitbang transfer More... | |
void | avr_bitbang_stop (avr_bitbang_t *p) |
stop bitbang transfer More... | |
#define __AVR_BITBANG_H__ |
#define BITBANG_MASK 0xFFFFFFFFUL |
|
static |
process clock edges (both: positive and negative edges)
p | bitbang structure |
|
static |
|
static |
|
static |
read (sample) data from input pin
p | internal bitbang structure |
|
static |
write data to output pin
p | bitbang structure |