Microchip® Advanced Software Framework

 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
ATSHA204 Component Example - status LED's

functions

Functions

void display_status (uint8_t device_present_mask, uint8_t sha204_revision)
 This function displays information using LEDs about the SHA204 devices on the Security Xplained board. More...
 
void led_display_number (uint8_t value)
 This function displays a byte value using the Xplained LEDs. More...
 

void display_status ( uint8_t  device_present_mask,
uint8_t  sha204_revision 
)

This function displays information using LEDs about the SHA204 devices on the Security Xplained board.

Parameters
[in]device_present_maskThe high nibble represents the four SHA204 devices.
[in]sha204_revisionrevision of the SHA204 devices

References led_display_number(), SHA204_DEVICE_COUNT, and sha204h_delay_ms().

Referenced by main().

void led_display_number ( uint8_t  value)

This function displays a byte value using the Xplained LEDs.

Parameters
[in]valuebyte to display

References LED0_GPIO, LED1_GPIO, LED2_GPIO, LED3_GPIO, LED4_GPIO, LED5_GPIO, LED6_GPIO, LED7_GPIO, LED_Off, and LED_On.

Referenced by display_status(), and main().