SimAVR
AVR Simulator
avr_bitbang.c File Reference
#include <stdio.h>
#include <stdlib.h>
#include "avr_bitbang.h"
#include "avr_ioport.h"
#include "sim_core.h"
#include "sim_regbit.h"
Include dependency graph for avr_bitbang.c:

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...
 

Macro Definition Documentation

#define __AVR_BITBANG_H__
#define BITBANG_MASK   0xFFFFFFFFUL
Todo:
refactor SPI to bitbang

Function Documentation

static void avr_bitbang_clk_edge ( avr_bitbang_t p)
static

process clock edges (both: positive and negative edges)

Parameters
pbitbang structure

Here is the call graph for this function:

Here is the caller graph for this function:

static void avr_bitbang_clk_hook ( struct avr_irq_t irq,
uint32_t  value,
void *  param 
)
static

Here is the call graph for this function:

Here is the caller graph for this function:

static avr_cycle_count_t avr_bitbang_clk_timer ( struct avr_t avr,
avr_cycle_count_t  when,
void *  param 
)
static

Here is the call graph for this function:

Here is the caller graph for this function:

static void avr_bitbang_read_bit ( avr_bitbang_t p)
static

read (sample) data from input pin

Parameters
pinternal bitbang structure

Here is the call graph for this function:

Here is the caller graph for this function:

static void avr_bitbang_write_bit ( avr_bitbang_t p)
static

write data to output pin

Parameters
pbitbang structure

Here is the call graph for this function:

Here is the caller graph for this function: