Microchip® Advanced Software Framework

security_xplained.c File Reference

SECURITY_XPLAINED extension board adaptation.

Copyright (c) 2011-2018 Microchip Technology Inc. and its subsidiaries.

#include "security_xplained.h"
#include "sha204_physical.h"
#include "conf_atsha204.h"

Macros

#define SHA204_I2C_DEFAULT_ADDRESS   (0xCA)
 TWI address used at SHA204 library startup. More...
 

Functions

void security_board_init (void)
 This function initializes peripherals needed to communicate with the I2C security devices (ATSHA204 and ATAES132). More...
 
uint8_t sha204_i2c_address (uint8_t index)
 This function returns the I2C address of a chosen SHA204 device. More...
 

#define SHA204_I2C_DEFAULT_ADDRESS   (0xCA)

TWI address used at SHA204 library startup.

Referenced by sha204_i2c_address().

void security_board_init ( void  )

This function initializes peripherals needed to communicate with the I2C security devices (ATSHA204 and ATAES132).

References sha204p_init().

uint8_t sha204_i2c_address ( uint8_t  index)

This function returns the I2C address of a chosen SHA204 device.

Parameters
[in]indexthe selected device on the Security Xplained board
Returns
I2C address of chosen device

References SHA204_DEVICE_COUNT, and SHA204_I2C_DEFAULT_ADDRESS.

Referenced by main(), sha204_sleep_all(), and test_all_devices().