src/drivers/ssd_gpio.c
/* ========================================================================== */
/**
 * @details This function implements the following objectives:
 *		-# Enable the RPi pin connected (in some way) to the RESET pin on the
 *				SSD1803A such that:
 *			- Level of the pin is the active level of the pin.
 *
 * @retval STATUS_OK If the GPIO hardware was successfully deinitialised.
 * @retval STATUS_NOT_INITIALISED If the GPIO hardware had not been previously
 * initialised with a call to gpio_init().
 * @retval STATUS_INVALID_GPIO and STATUS_INVALID_LEVEL are theoretically
 * possible return values from the function gpioWrite, however they should never
 * occur due to the restrictions on the data type active_level_t.
 * ========================================================================== */
@details This function implements the following objectives:
-# Enable the RPi pin connected (in some way) to the RESET pin on the
SSD1803A such that:
- Level of the pin is the active level of the pin.

@retval STATUS_OK If the GPIO hardware was successfully deinitialised.
@retval STATUS_NOT_INITIALISED If the GPIO hardware had not been previously
initialised with a call to gpio_init().
@retval STATUS_INVALID_GPIO and STATUS_INVALID_LEVEL are theoretically
possible return values from the function gpioWrite, however they should never
occur due to the restrictions on the data type active_level_t.
@details This function implements the following objectives : - # Enable the RPi pin connected ( in some way ) to the RESET pin on the SSD1803A such that : - Level of the pin is the active level of the pin . @retval STATUS_OK If the GPIO hardware was successfully deinitialised . @retval STATUS_NOT_INITIALISED If the GPIO hardware had not been previously initialised with a call to gpio_init () . @retval STATUS_INVALID_GPIO and STATUS_INVALID_LEVEL are theoretically possible return values from the function gpioWrite however they should never occur due to the restrictions on the data type active_level_t .
status_t gpio_enable_display(void) {
	if (!m_HardwareResetEnabled) {
		return STATUS_OK;
	}
	if (m_Pin == STATUS_INVALID_GPIO) {
		LOG_TO_STDERR();
		return STATUS_NOT_INITIALISED;
	}
	status_t ret = gpioWrite((uint32_t)m_Pin, m_ActiveLevel);
	if (ret != STATUS_OK) {
		LOG_TO_STDERR();
	}
	return ret;
}
status_t gpio_enable_display ( void ) { if ( ! m_HardwareResetEnabled ) { return STATUS_OK ; } if ( m_Pin == STATUS_INVALID_GPIO ) { LOG_TO_STDERR ( ) ; return STATUS_NOT_INITIALISED ; } status_t ret = gpioWrite ( ( uint32_t ) m_Pin , m_ActiveLevel ) ; if ( ret != STATUS_OK ) { LOG_TO_STDERR ( ) ; } return ret ; }
@details This function implements the following objectives:
              -# Enable the RPi pin connected (in some way) to the RESET pin on the
                              SSD1803A such that:
                      - Level of the pin is the active level of the pin.
@details This function implements the following objectives : - # Enable the RPi pin connected ( in some way ) to the RESET pin on the SSD1803A such that : - Level of the pin is the active level of the pin .
/* Hardware reset is not enabled */ /* GPIO has not been previously initialised */ /* Enable the SSD1803A */