RA Flexible Software Package Documentation
Release v5.7.0
|
|
Interface for Segment LCD controllers.
Data Structures | |
struct | slcdc_cfg_t |
struct | slcdc_api_t |
struct | slcdc_instance_t |
Typedefs | |
typedef void | slcdc_ctrl_t |
Enumerations | |
enum | slcdc_bias_method_t |
enum | slcdc_time_slice_t |
enum | slcdc_waveform_t |
enum | slcdc_drive_volt_gen_t |
enum | slcdc_ref_volt_sel_t |
enum | slcdc_display_area_control_blink_t |
enum | slcdc_display_area_t |
enum | slcdc_contrast_t |
enum | slcdc_display_on_off_t |
enum | slcdc_display_enable_disable_t |
enum | slcdc_display_clock_t |
enum | slcdc_clk_div_t |
struct slcdc_cfg_t |
SLCDC configuration block
Data Fields | ||
---|---|---|
slcdc_display_clock_t | slcdc_clock | LCD clock source (LCDSCKSEL) |
slcdc_clk_div_t | slcdc_clock_setting | LCD clock setting (LCDC0) |
slcdc_bias_method_t | bias_method | LCD display bias method select (LBAS bit) |
slcdc_time_slice_t | time_slice | Time slice of LCD display select (LDTY bit) |
slcdc_waveform_t | waveform | LCD display waveform select (LWAVE bit) |
slcdc_drive_volt_gen_t | drive_volt_gen | LCD Drive Voltage Generator Select (MDSET bit) |
slcdc_contrast_t | contrast | LCD Boost Level (contrast setting) |
slcdc_ref_volt_sel_t | ref_volt_sel | LCD reference voltage selection (MDSET2 bit) |
struct slcdc_api_t |
SLCDC functions implemented at the HAL layer will follow this API.
Data Fields | |
fsp_err_t(* | open )(slcdc_ctrl_t *const p_ctrl, slcdc_cfg_t const *const p_cfg) |
fsp_err_t(* | write )(slcdc_ctrl_t *const p_ctrl, uint8_t const start_segment, uint8_t const *p_data, uint8_t const segment_count) |
fsp_err_t(* | modify )(slcdc_ctrl_t *const p_ctrl, uint8_t const segment, uint8_t const data_mask, uint8_t const data) |
fsp_err_t(* | start )(slcdc_ctrl_t *const p_ctrl) |
fsp_err_t(* | stop )(slcdc_ctrl_t *const p_ctrl) |
fsp_err_t(* | setContrast )(slcdc_ctrl_t *const p_ctrl, slcdc_contrast_t const contrast) |
fsp_err_t(* | setDisplayArea )(slcdc_ctrl_t *const p_ctrl, slcdc_display_area_t const display_area) |
fsp_err_t(* | close )(slcdc_ctrl_t *const p_ctrl) |
fsp_err_t(* slcdc_api_t::open) (slcdc_ctrl_t *const p_ctrl, slcdc_cfg_t const *const p_cfg) |
Open SLCDC.
[in,out] | p_ctrl | Pointer to display interface control block. Must be declared by user. |
[in] | p_cfg | Pointer to display configuration structure. All elements of this structure must be set by the user. |
fsp_err_t(* slcdc_api_t::write) (slcdc_ctrl_t *const p_ctrl, uint8_t const start_segment, uint8_t const *p_data, uint8_t const segment_count) |
Write data to the SLCDC segment data array. Specifies the initial display data. Except when using 8-time slice mode, store values in the lower 4 bits when writing to the A-pattern area and in the upper 4 bits when writing to the B-pattern area.
[in] | p_ctrl | Pointer to display interface control block. |
[in] | start_segment | Specify the start segment number to be written. |
[in] | p_data | Pointer to the display data to be written to the specified segments. |
[in] | segment_count | Number of segments to be written. |
fsp_err_t(* slcdc_api_t::modify) (slcdc_ctrl_t *const p_ctrl, uint8_t const segment, uint8_t const data_mask, uint8_t const data) |
Rewrite data in the SLCDC segment data array. Rewrites the LCD display data in 1-bit units. If a bit is not specified for rewriting, the value stored in the bit is held as it is.
[in] | p_ctrl | Pointer to display interface control block. |
[in] | segment | The segment to be written. |
[in] | data_mask | Mask the data being displayed. Set 0 to the bit to be rewritten and set 1 to the other bits. Multiple bits can be rewritten. |
[in] | data | Specify display data to rewrite to the specified segment. |
fsp_err_t(* slcdc_api_t::start) (slcdc_ctrl_t *const p_ctrl) |
Enable display signal output. Displays the segment data on the LCD.
[in] | p_ctrl | Pointer to display interface control block. |
fsp_err_t(* slcdc_api_t::stop) (slcdc_ctrl_t *const p_ctrl) |
Disable display signal output. Stops displaying data on the LCD.
[in] | p_ctrl | Pointer to display interface control block. |
fsp_err_t(* slcdc_api_t::setContrast) (slcdc_ctrl_t *const p_ctrl, slcdc_contrast_t const contrast) |
Set the display contrast. This function can be used only when the internal voltage boosting method is used for drive voltage generation.
[in] | p_ctrl | Pointer to display interface control block. |
fsp_err_t(* slcdc_api_t::setDisplayArea) (slcdc_ctrl_t *const p_ctrl, slcdc_display_area_t const display_area) |
Set LCD display area. This function sets a specified display area, A-pattern or B-pattern. This function can be used to 'blink' the display between A-pattern and B-pattern area data.
When using blinking, the RTC is required to operate before this function is executed. To configure the RTC, follow the steps below. 1) Open RTC 2) Set Periodic IRQ 3) Start RTC counter 4) Enable IRQ, RTC_EVENT_PERIODIC_IRQ Refer to the User's Manual for the detailed procedure.
[in] | p_ctrl | Pointer to display interface control block. |
[in] | display_area | Display area to be used, A-pattern or B-pattern area. |
fsp_err_t(* slcdc_api_t::close) (slcdc_ctrl_t *const p_ctrl) |
Close SLCDC.
[in] | p_ctrl | Pointer to display interface control block. |
struct slcdc_instance_t |
This structure encompasses everything that is needed to use an instance of this interface.
Data Fields | ||
---|---|---|
slcdc_ctrl_t * | p_ctrl | Pointer to the control structure for this instance. |
slcdc_cfg_t const * | p_cfg | Pointer to the configuration structure for this instance. |
slcdc_api_t const * | p_api | Pointer to the API structure for this instance. |
typedef void slcdc_ctrl_t |
SLCDC control block. Allocate an instance specific control block to pass into the SLCDC API calls.SLCDC control block
enum slcdc_bias_method_t |
enum slcdc_time_slice_t |
enum slcdc_waveform_t |
enum slcdc_ref_volt_sel_t |
enum slcdc_display_area_t |
enum slcdc_contrast_t |
LCD Boost Level (contrast) settings
enum slcdc_clk_div_t |
LCD clock settings