Microchip® Advanced Software Framework

security_xplained.h File Reference

SECURITY_XPLAINED_BOARD board header file.

This file contains definitions and services related to the features of the SECURITY_XPLAINED Xplained board.

To use the board, define EXT_BOARD=SECURITY_XPLAINED.

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

#include <compiler.h>

Macros

#define SHA204_DEVICE_COUNT   (4)
 number of ATSHA204 I2C devices on Security Xplained extension board 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_DEVICE_COUNT   (4)

number of ATSHA204 I2C devices on Security Xplained extension board

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

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