SAMV71 Xplained Ultra Software Package 1.5

main.c File Reference

#include "board.h"
#include <stdio.h>
#include <string.h>

Go to the source code of this file.

Data Structures

struct  SlaveDeviceDriver

Defines

#define SLAVE_ADDRESS   0x53
#define MEMORY_SIZE   256
#define BOARD_PINS_TWI_SLAVE   PINS_TWI0
#define BOARD_ID_TWI_EEPROM   ID_TWIHS0
#define BOARD_BASE_TWI_SLAVE   TWIHS0

Functions

void TWIHS0_Handler (void)
 Interrupt handler for the TWI slave.
int main (void)
 Application entry point for TWI slave example.

Variables

const Pin pins [] = BOARD_PINS_TWI_SLAVE

Detailed Description

This file contains all the specific code for the twi_slave example.

Definition in file main.c.


Define Documentation

#define BOARD_BASE_TWI_SLAVE   TWIHS0

TWI0 base address for eeprom device

Definition at line 134 of file main.c.

#define BOARD_ID_TWI_EEPROM   ID_TWIHS0

TWI0 peripheral ID for eeprom device

Definition at line 132 of file main.c.

#define BOARD_PINS_TWI_SLAVE   PINS_TWI0

Eeprom Pins definition

Definition at line 130 of file main.c.

#define MEMORY_SIZE   256

Memory size in bytes (example AT24C512)

Definition at line 127 of file main.c.

#define SLAVE_ADDRESS   0x53

Slave address of the device on the TWI bus.

Definition at line 124 of file main.c.


Function Documentation

int main ( void   ) 

Application entry point for TWI slave example.

Returns:
Unused (ANSI-C compatibility).

Definition at line 239 of file main.c.

Here is the call graph for this function:


Variable Documentation

const Pin pins[] = BOARD_PINS_TWI_SLAVE

Pio pins to configure.

Definition at line 140 of file main.c.

 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Defines